pub trait ClampCast: PartialOrd<Self> + Copy + 'static {
    fn clamp_cast<O>(self) -> O
    where
        Self: AsPrimitive<O> + Datum,
        O: AsPrimitive<Self> + Bounded + Datum
, { ... } }

Provided Methods§

Implementors§