[][src]Function geng_core::prelude::clamp_abs

pub fn clamp_abs<T>(x: T, max: T) -> T where
    T: PartialOrd<T> + Neg<Output = T> + Copy