pub trait IntoLinspace: AsRangedCoord {
    // Provided method
    fn step<S>(
        self,
        val: S
    ) -> Linspace<Self::CoordDescType, S, Exact<Self::Value>>
       where S: Clone,
             Self::Value: Add<S, Output = Self::Value> + PartialOrd + Clone { ... }
}
Expand description

Makes a linspace coordinate from the ranged coordinates.

Provided Methods§

source

fn step<S>(self, val: S) -> Linspace<Self::CoordDescType, S, Exact<Self::Value>>
where S: Clone, Self::Value: Add<S, Output = Self::Value> + PartialOrd + Clone,

Set the step value, make a linspace coordinate from the given range. By default the matching method use the exact match

  • val: The step value
  • *returns: The newly created linspace

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> IntoLinspace for T
where T: AsRangedCoord,