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
11
12
13
# re_int

Part of the [`rerun`](https://github.com/rerun-io/rerun) family of crates.

[![Latest version](https://img.shields.io/crates/v/re_int.svg)](https://crates.io/crates/re_int)
[![Documentation](https://docs.rs/re_int/badge.svg)](https://docs.rs/re_int)
![MIT](https://img.shields.io/badge/license-MIT-blue.svg)
![Apache](https://img.shields.io/badge/license-Apache-blue.svg)

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.