pub trait ClampCast: PartialOrd + 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,

Object Safety§

This trait is not object safe.

Implementors§

§

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