Treatment saturatingToI16

std/conv::saturatingToI16


Generics

◻ T: SaturatingToI16

Inputs

⇥ value: Stream<T>

Outputs

↦ into: Stream<i16>


Turns stream into i16 one, saturating if needed.

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