Function rin_core::math::iwrap[−][src]

pub fn iwrap<T>(value: T, from: T, to: T) -> T where
    T: PrimInt + Display, 

Wrap an integer value in the range from..to