Treatment saturatingToU64

std/conv::saturatingToU64


Generics

◻ T: SaturatingToU64

Inputs

⇥ value: Stream<T>

Outputs

↦ into: Stream<u64>


Turns stream into u64 one, saturating if needed.

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