Struct charts::prelude::coord::RangedCoordu64
[−]pub struct RangedCoordu64(_, _);
Expand description
The ranged coordinate for type u64
Trait Implementations
impl Clone for RangedCoordu64
impl Clone for RangedCoordu64
fn clone(&self) -> RangedCoordu64
fn clone(&self) -> RangedCoordu64
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
impl DiscreteRanged for RangedCoordu64
impl DiscreteRanged for RangedCoordu64
fn 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
fn index_of(
&self,
value: &<RangedCoordu64 as Ranged>::ValueType
) -> Option<usize>
fn index_of(
&self,
value: &<RangedCoordu64 as Ranged>::ValueType
) -> Option<usize>
Map a value to the index Read more
fn from_index(
&self,
index: usize
) -> Option<<RangedCoordu64 as Ranged>::ValueType>
fn from_index(
&self,
index: usize
) -> Option<<RangedCoordu64 as Ranged>::ValueType>
Reverse map the index to the value Read more
fn values(&self) -> DiscreteValueIter<'_, Self>
fn values(&self) -> DiscreteValueIter<'_, Self>
Return a iterator that iterates over the all possible values Read more
impl From<Range<u64>> for RangedCoordu64
impl From<Range<u64>> for RangedCoordu64
fn from(range: Range<u64>) -> RangedCoordu64
fn from(range: Range<u64>) -> RangedCoordu64
Converts to this type from the input type.
impl Ranged for RangedCoordu64
impl Ranged for RangedCoordu64
type FormatOption = DefaultFormatting
type FormatOption = DefaultFormatting
This marker decides if Plotters default ValueFormatter implementation should be used. This assicated type can be one of follow two types: Read more
fn map(&self, v: &u64, limit: (i32, i32)) -> i32
fn map(&self, v: &u64, limit: (i32, i32)) -> i32
This function maps the value to i32, which is the drawing coordinate
fn key_points<Hint>(&self, hint: Hint) -> Vec<u64, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
where
Hint: KeyPointHint,
fn key_points<Hint>(&self, hint: Hint) -> Vec<u64, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
where
Hint: KeyPointHint,
A: Allocator,
This function gives the key points that we can draw a grid based on this
Auto Trait Implementations
impl RefUnwindSafe for RangedCoordu64
impl Send for RangedCoordu64
impl Sync for RangedCoordu64
impl Unpin for RangedCoordu64
impl UnwindSafe for RangedCoordu64
Blanket Implementations
sourceimpl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
sourcefn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified method Read more
sourcefn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford method by default Read more
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
Scheme: ApproxScheme,
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
impl<T> AsRangedCoord for T where
T: Ranged,
impl<T> AsRangedCoord for T where
T: Ranged,
type CoordDescType = T
type Value = <T as Ranged>::ValueType
impl<T> BindKeyPointMethod for T where
T: AsRangedCoord,
impl<T> BindKeyPointMethod for T where
T: AsRangedCoord,
fn with_key_point_func<F>(
self,
func: F
) -> WithKeyPointMethod<Self::CoordDescType> where
F: 'static + Fn(usize) -> Vec<Self::Value, Global>,
fn with_key_point_func<F>(
self,
func: F
) -> WithKeyPointMethod<Self::CoordDescType> where
F: 'static + Fn(usize) -> Vec<Self::Value, Global>,
Bind a existing coordinate spec with a given key points algorithm. See WithKeyPointMethod for more details. Example: Read more
impl<T> BindKeyPoints for T where
T: AsRangedCoord,
impl<T> BindKeyPoints for T where
T: AsRangedCoord,
fn with_key_points(
self,
points: Vec<Self::Value, Global>
) -> WithKeyPoints<Self::CoordDescType>
fn with_key_points(
self,
points: Vec<Self::Value, Global>
) -> WithKeyPoints<Self::CoordDescType>
Bind a existing coordinate spec with a given key points vector. See WithKeyPoints for more details. Example: Read more
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
impl<T> ConvUtil for T
impl<T> ConvUtil for T
fn approx_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
Approximate the subject to a given type with the default scheme.
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
sourceimpl<T, U> IntoColor<U> for T where
U: FromColor<T>,
impl<T, U> IntoColor<U> for T where
U: FromColor<T>,
sourcefn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
sourceimpl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
sourcefn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
impl<T> IntoLinspace for T where
T: AsRangedCoord,
impl<T> IntoLinspace for T where
T: AsRangedCoord,
fn step<S>(self, val: S) -> Linspace<Self::CoordDescType, S, Exact<Self::Value>> where
S: Clone,
Self::Value: Add<S>,
Self::Value: PartialOrd<Self::Value>,
Self::Value: Clone,
<Self::Value as Add<S>>::Output == Self::Value,
fn step<S>(self, val: S) -> Linspace<Self::CoordDescType, S, Exact<Self::Value>> where
S: Clone,
Self::Value: Add<S>,
Self::Value: PartialOrd<Self::Value>,
Self::Value: Clone,
<Self::Value as Add<S>>::Output == Self::Value,
Set the step value, make a linspace coordinate from the given range. By default the matching method use the exact match Read more
impl<R> IntoPartialAxis for R where
R: AsRangedCoord,
impl<R> IntoPartialAxis for R where
R: AsRangedCoord,
fn partial_axis(
self,
axis_range: Range<<Self::CoordDescType as Ranged>::ValueType>
) -> PartialAxis<Self::CoordDescType>
fn partial_axis(
self,
axis_range: Range<<Self::CoordDescType as Ranged>::ValueType>
) -> PartialAxis<Self::CoordDescType>
Make the partial axis Read more
sourceimpl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
sourcefn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an OutOfBounds
error is returned which contains
the unclamped color. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
impl<Src> ValueFrom<Src> for Src
impl<Src> ValueFrom<Src> for Src
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.
impl<Src, Dst> ValueInto<Dst> for Src where
Dst: ValueFrom<Src>,
impl<Src, Dst> ValueInto<Dst> for Src where
Dst: ValueFrom<Src>,
type Err = <Dst as ValueFrom<Src>>::Err
type Err = <Dst as ValueFrom<Src>>::Err
The error type produced by a failed conversion.
fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
Convert the subject into an exactly equivalent representation.