Treatment saturatingToI32

std/conv::saturatingToI32


Generics

◻ T: SaturatingToI32

Inputs

⇥ value: Stream<T>

Outputs

↦ into: Stream<i32>


Turns stream into i32 one, saturating if needed.

This treatment manages saturating and infaillible conversion to i32. If incoming data represents something out of bounds for i32, then the resulting value is set to minimum or maximum, depending what is the closest to truth.