re_int 0.36.0

Small numeric helper traits: saturating integer casts and unsigned absolute value
Documentation
1
2
3
4
5
6
7
8
9
10
//! 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.

mod saturating_cast;
mod unsigned_abs;

pub use self::saturating_cast::{SaturatingCast, SaturatingFrom};
pub use self::unsigned_abs::UnsignedAbs;