Trait plotters::coord::ranged1d::Ranged [−][src]
pub trait Ranged { type FormatOption: DefaultValueFormatOption; type ValueType; fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32; fn key_points<Hint: KeyPointHint>(&self, hint: Hint) -> Vec<Self::ValueType>; fn range(&self) -> Range<Self::ValueType>; fn axis_pixel_range(&self, limit: (i32, i32)) -> Range<i32> { ... } }
Expand description
The trait that indicates we have a ordered and ranged value Which is used to describe any 1D axis.
Associated Types
type FormatOption: DefaultValueFormatOption
[src]
type FormatOption: DefaultValueFormatOption
[src]This marker decides if Plotters default ValueFormatter implementation should be used. This assicated type can be one of follow two types:
-
DefaultFormatting will allow Plotters automatically impl the formatter based on
Debug
trait, ifDebug
trait is not impl for theSelf::Value
, ValueFormatter will not impl unless you impl it manually. -
NoDefaultFormatting Disable the automatical
Debug
based value formatting. Thus you have to impl the ValueFormatter manually.
Required methods
Provided methods
Implementors
impl Ranged for RangedCoordf32
[src]
impl Ranged for RangedCoordf32
[src]impl Ranged for RangedCoordf64
[src]
impl Ranged for RangedCoordf64
[src]impl Ranged for RangedCoordi32
[src]
impl Ranged for RangedCoordi32
[src]impl Ranged for RangedCoordi64
[src]
impl Ranged for RangedCoordi64
[src]impl Ranged for RangedCoordi128
[src]
impl Ranged for RangedCoordi128
[src]impl Ranged for RangedCoordu32
[src]
impl Ranged for RangedCoordu32
[src]impl Ranged for RangedCoordu64
[src]
impl Ranged for RangedCoordu64
[src]impl Ranged for RangedCoordu128
[src]
impl Ranged for RangedCoordu128
[src]impl Ranged for RangedCoordusize
[src]
impl Ranged for RangedCoordusize
[src]impl Ranged for RangedDuration
[src]
impl Ranged for RangedDuration
[src]impl<'a, T: PartialEq> Ranged for RangedSlice<'a, T>
[src]
impl<'a, T: PartialEq> Ranged for RangedSlice<'a, T>
[src]impl<D> Ranged for RangedDate<D> where
D: Datelike + TimeValue + Sub<D, Output = Duration> + Add<Duration, Output = D> + Clone,
[src]
impl<D> Ranged for RangedDate<D> where
D: Datelike + TimeValue + Sub<D, Output = Duration> + Add<Duration, Output = D> + Clone,
[src]type FormatOption = DefaultFormatting
type ValueType = D
fn range(&self) -> Range<D>
[src]
fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32
[src]
fn key_points<HintType: KeyPointHint>(
&self,
hint: HintType
) -> Vec<Self::ValueType>
[src]
&self,
hint: HintType
) -> Vec<Self::ValueType>
impl<D: DiscreteRanged> Ranged for SegmentedCoord<D>
[src]
impl<D: DiscreteRanged> Ranged for SegmentedCoord<D>
[src]type FormatOption = NoDefaultFormatting
type ValueType = SegmentValue<D::ValueType>
fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32
[src]
fn key_points<HintType: KeyPointHint>(
&self,
hint: HintType
) -> Vec<Self::ValueType>
[src]
&self,
hint: HintType
) -> Vec<Self::ValueType>
fn range(&self) -> Range<Self::ValueType>
[src]
impl<DT> Ranged for RangedDateTime<DT> where
DT: Datelike + Timelike + TimeValue + Clone + PartialOrd,
DT: Add<Duration, Output = DT>,
DT: Sub<DT, Output = Duration>,
RangedDate<DT::DateType>: Ranged<ValueType = DT::DateType>,
[src]
impl<DT> Ranged for RangedDateTime<DT> where
DT: Datelike + Timelike + TimeValue + Clone + PartialOrd,
DT: Add<Duration, Output = DT>,
DT: Sub<DT, Output = Duration>,
RangedDate<DT::DateType>: Ranged<ValueType = DT::DateType>,
[src]type FormatOption = DefaultFormatting
type ValueType = DT
fn range(&self) -> Range<DT>
[src]
fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32
[src]
fn key_points<HintType: KeyPointHint>(
&self,
hint: HintType
) -> Vec<Self::ValueType>
[src]
&self,
hint: HintType
) -> Vec<Self::ValueType>
impl<P: DiscreteRanged, S: Ranged> Ranged for NestedRange<P, S>
[src]
impl<P: DiscreteRanged, S: Ranged> Ranged for NestedRange<P, S>
[src]type FormatOption = NoDefaultFormatting
type ValueType = NestedValue<P::ValueType, S::ValueType>
fn range(&self) -> Range<Self::ValueType>
[src]
fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32
[src]
fn key_points<Hint: KeyPointHint>(&self, hint: Hint) -> Vec<Self::ValueType>
[src]
impl<R: Ranged> Ranged for WithKeyPointMethod<R>
[src]
impl<R: Ranged> Ranged for WithKeyPointMethod<R>
[src]type ValueType = R::ValueType
type FormatOption = R::FormatOption
fn range(&self) -> Range<Self::ValueType>
[src]
fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32
[src]
fn key_points<Hint: KeyPointHint>(&self, hint: Hint) -> Vec<Self::ValueType>
[src]
fn axis_pixel_range(&self, limit: (i32, i32)) -> Range<i32>
[src]
impl<R: Ranged> Ranged for WithKeyPoints<R> where
R::ValueType: Clone,
[src]
impl<R: Ranged> Ranged for WithKeyPoints<R> where
R::ValueType: Clone,
[src]type ValueType = R::ValueType
type FormatOption = R::FormatOption
fn range(&self) -> Range<Self::ValueType>
[src]
fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32
[src]
fn key_points<Hint: KeyPointHint>(&self, hint: Hint) -> Vec<Self::ValueType>
[src]
fn axis_pixel_range(&self, limit: (i32, i32)) -> Range<i32>
[src]
impl<T: DiscreteRanged> Ranged for GroupBy<T>
[src]
impl<T: DiscreteRanged> Ranged for GroupBy<T>
[src]impl<T: Ranged, S: Clone, R: LinspaceRoundingMethod<T::ValueType>> Ranged for Linspace<T, S, R> where
T::ValueType: Add<S, Output = T::ValueType> + PartialOrd + Clone,
[src]
impl<T: Ranged, S: Clone, R: LinspaceRoundingMethod<T::ValueType>> Ranged for Linspace<T, S, R> where
T::ValueType: Add<S, Output = T::ValueType> + PartialOrd + Clone,
[src]impl<T: TimeValue + Clone> Ranged for Monthly<T> where
Range<T>: AsRangedCoord<Value = T>,
[src]
impl<T: TimeValue + Clone> Ranged for Monthly<T> where
Range<T>: AsRangedCoord<Value = T>,
[src]type FormatOption = NoDefaultFormatting
type ValueType = T
fn range(&self) -> Range<T>
[src]
fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32
[src]
fn key_points<HintType: KeyPointHint>(
&self,
hint: HintType
) -> Vec<Self::ValueType>
[src]
&self,
hint: HintType
) -> Vec<Self::ValueType>
impl<T: TimeValue + Clone> Ranged for Yearly<T> where
Range<T>: AsRangedCoord<Value = T>,
[src]
impl<T: TimeValue + Clone> Ranged for Yearly<T> where
Range<T>: AsRangedCoord<Value = T>,
[src]type FormatOption = NoDefaultFormatting
type ValueType = T
fn range(&self) -> Range<T>
[src]
fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32
[src]
fn key_points<HintType: KeyPointHint>(
&self,
hint: HintType
) -> Vec<Self::ValueType>
[src]
&self,
hint: HintType
) -> Vec<Self::ValueType>
impl<V: LogScalable> Ranged for LogCoord<V>
[src]
impl<V: LogScalable> Ranged for LogCoord<V>
[src]