Treatment saturatingToU32

std/conv::saturatingToU32


Generics

◻ T: SaturatingToU32

Inputs

⇥ value: Stream<T>

Outputs

↦ into: Stream<u32>


Turns stream into u32 one, saturating if needed.

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