image::utils

Function clamp

Source
pub(crate) fn clamp<N>(a: N, min: N, max: N) -> N
where N: PartialOrd,