pub fn slice<R: Into<Range<C::Scalar>>>(&self, range: R) -> Slice<C, T>
    where
        C::Scalar: PartialOrd + Clone,
    {
        Slice {
            gradient: self.gradient,
            range: self.range.constrain(&range.into()),
        }
    }
/// Slice this gradient slice to further limit its domain. Ranges outside
/// the domain will be clamped to the nearest domain limit.
Slice this gradient slice to further limit its domain. Ranges outside
the domain will be clamped to the nearest domain limit.
Slice this gradient slice to further limit its domain . Ranges outside the domain will be clamped to the nearest domain limit .
pub fn slice<R: Into<Range<C::Scalar>>>(&self, range: R) -> Slice<C, T>
    where
        C::Scalar: PartialOrd + Clone,
    {
        Slice {
            gradient: self.gradient,
            range: self.range.constrain(&range.into()),
        }
    }
pub fn slice < R : Into < Range < C :: Scalar > > > ( & self , range : R ) -> Slice < C , T > where C :: Scalar : PartialOrd + Clone , { Slice { gradient : self . gradient , range : self . range . constrain ( & range . into ( ) ) , } }
Slice this gradient slice to further limit its domain.
Slice this gradient slice to further limit its domain .
&self
range
R
&self
range
R