Treatment clamp

std/ops::clamp


Generics

◻ T: Order

Parameters

↳ var max: T
↳ var min: T

Inputs

⇥ value: Stream<T>

Outputs

↦ clamped: Stream<T>


Stream value restrained between min and max.

Value is streamed if it is in the [min,max] interval. If value is smaller min is sent, or if it greater max is sent.