Trait Clip

Source
pub trait Clip<T> {
    type Output;

    // Required method
    fn clip(&self, min: T, max: T) -> Self::Output;
}
Expand description

A trait denoting objects capable of being clipped between some minimum and some maximum.

Required Associated Types§

Source

type Output

the type output produced by the operation

Required Methods§

Source

fn clip(&self, min: T, max: T) -> Self::Output

limits the values within an object to a range between min and max

Implementations on Foreign Types§

Source§

impl<A, S, D> Clip<A> for ArrayBase<S, D>
where A: 'static + Clone + PartialOrd, S: Data<Elem = A>, D: Dimension,

Source§

type Output = ArrayBase<OwnedRepr<A>, D>

Source§

fn clip(&self, min: A, max: A) -> Self::Output

Implementors§