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

Type of the values as they will be passed to the graph.

Type of coordinate ranges.

Required Methods

Generates a default Self value.

Zero value for the actual coordinates.

True if a coordinate value is zero.

Default minimum value for a range of coordinates.

Default maximum value for a range of coordinates.

Implementations on Foreign Types

Implementors