Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.