pub struct RangedCoordusize(_, _);
Expand description
The ranged coordinate for type usize
Trait Implementations
sourceimpl Clone for RangedCoordusize
impl Clone for RangedCoordusize
sourcefn clone(&self) -> RangedCoordusize
fn clone(&self) -> RangedCoordusize
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl DiscreteRanged for RangedCoordusize
impl DiscreteRanged for RangedCoordusize
sourcefn size(&self) -> usize
fn size(&self) -> usize
Get the number of element in the range Note: we assume that all the ranged discrete coordinate has finite value Read more
sourcefn index_of(&self, value: &Self::ValueType) -> Option<usize>
fn index_of(&self, value: &Self::ValueType) -> Option<usize>
Map a value to the index Read more
sourcefn from_index(&self, index: usize) -> Option<Self::ValueType>
fn from_index(&self, index: usize) -> Option<Self::ValueType>
Reverse map the index to the value Read more
sourcefn values(&self) -> DiscreteValueIter<'_, Self> where
Self: Sized,
fn values(&self) -> DiscreteValueIter<'_, Self> where
Self: Sized,
Return a iterator that iterates over the all possible values Read more
sourceimpl From<Range<usize>> for RangedCoordusize
impl From<Range<usize>> for RangedCoordusize
sourceimpl Ranged for RangedCoordusize
impl Ranged for RangedCoordusize
type FormatOption = DefaultFormatting
type FormatOption = DefaultFormatting
This marker decides if Plotters default ValueFormatter implementation should be used. This associated type can be one of the following two types: Read more
sourcefn map(&self, v: &usize, limit: (i32, i32)) -> i32
fn map(&self, v: &usize, limit: (i32, i32)) -> i32
This function maps the value to i32, which is the drawing coordinate
sourcefn key_points<Hint: KeyPointHint>(&self, hint: Hint) -> Vec<usize>
fn key_points<Hint: KeyPointHint>(&self, hint: Hint) -> Vec<usize>
This function gives the key points that we can draw a grid based on this
Auto Trait Implementations
impl RefUnwindSafe for RangedCoordusize
impl Send for RangedCoordusize
impl Sync for RangedCoordusize
impl Unpin for RangedCoordusize
impl UnwindSafe for RangedCoordusize
Blanket Implementations
sourceimpl<T> AsRangedCoord for T where
T: Ranged,
impl<T> AsRangedCoord for T where
T: Ranged,
type CoordDescType = T
type CoordDescType = T
Type to describe a coordinate system
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more