Skip to main content

integer_min

Function integer_min 

Source
pub const fn integer_min<T: IntegerPrimitive>(a: T, b: T) -> T
🔬This is a nightly-only experimental API. (core_intrinsics)
Expand description

Integer minimum, signed or unsigned depending on T.

Allowed only on uN, iN, usize, and isize. (Not on bool nor on char.)

Stabilized as u16::min and i64::min and similar.