Skip to main content

integer_min

Function integer_min 

Source
pub const fn integer_min<T>(a: T, b: T) -> T
where T: IntegerPrimitive,
🔬This is a nightly-only experimental API. (core_intrinsics)
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
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.