re_int 0.36.1

Small numeric helper traits: saturating integer casts and unsigned absolute value
Documentation

re_int

Part of the rerun family of crates.

Latest version Documentation MIT Apache

Small numeric helper traits shared across the Rerun crates.

  • SaturatingCast — cast between integer types, clamping to the target's range instead of wrapping (as) or panicking (TryFrom + unwrap).
  • UnsignedAbs — compute the absolute value of a signed integer without wrapping or panicking.