Skip to main content

saturated

Function saturated 

Source
pub fn saturated<I, S>(x: S) -> I
where S: Saturates<I>,
Expand description

x as an integer of type I, or I’s largest or smallest value where x lies past its range. A float converts as Rust’s as converts it: NaN gives 0, and a fraction gives the integer toward 0. A type that fits an i32 converts from a float in vector form on every target, where as would convert one item at a time, as it does from an f64 on AArch64 and from any float on x86-64. Saturates lists the other sources.