Treatment saturatingToU128

std/conv::saturatingToU128


Generics

◻ T: SaturatingToU128

Inputs

⇥ value: Stream<T>

Outputs

↦ into: Stream<u128>


Turns stream into u128 one, saturating if needed.

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