Expand description
Small numeric helper traits shared across the Rerun crates.
SaturatingCast— cast between integer types, clamping to the target’s range.UnsignedAbs— absolute value of a signed integer without wrapping or panicking.
Traits§
- Saturating
Cast - Cast a number to another integer type, clamping to the target’s range
instead of wrapping (
as) or panicking (TryFrom+unwrap). - Saturating
From - Build
SelffromSrc, clamping toSelf’s range instead of wrapping or panicking. - Unsigned
Abs - Compute the absolute value of a signed integer without any wrapping or panicking.