pub trait CoordExt where
Self: Clone,
Self::Coord: 'static + Debug + Clone,
Self::Range: 'static + ValueFormatter<Self::Coord> + Ranged<ValueType = Self::Coord> + From<Range<Self::Coord>>, {
type Coord;
type Range;
fn default_val() -> Self;
fn zero() -> Self::Coord;
fn is_zero(val: &Self::Coord) -> bool;
fn default_min() -> Self::Coord;
fn default_max() -> Self::Coord;
}
Expand description
Extension trait for coordinates.
Note that the type of the values appearing in a point are not necessarily the same type expected
by the graph. Hence, this trait has a Coord
associated type specifying the type of the
actual values as expected by a graph.
Required Associated Types
Required Methods
fn default_val() -> Self
fn default_val() -> Self
Generates a default Self
value.
fn default_min() -> Self::Coord
fn default_min() -> Self::Coord
Default minimum value for a range of coordinates.
fn default_max() -> Self::Coord
fn default_max() -> Self::Coord
Default maximum value for a range of coordinates.