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

Provided Methods§

fn clamp_cast<O>(self) -> Owhere Self: AsPrimitive<O> + Datum, O: AsPrimitive<Self> + Bounded + Datum,

Implementors§

§

impl<T> ClampCast for Twhere T: PartialOrd<T> + Copy + 'static,