[−][src]Struct plotters::prelude::GroupBy
The ranged value spec that needs to be grouped. This is useful, for example, when we have an X axis is a integer and denotes days. And we are expecting the tick mark denotes weeks, in this way we can make the range spec grouping by 7 elements.
Trait Implementations
impl<T> Ranged for GroupBy<T> where
T::ValueType: PrimInt + ToPrimitive + FromPrimitive + Mul,
T: Ranged,
[src]
T::ValueType: PrimInt + ToPrimitive + FromPrimitive + Mul,
T: Ranged,
type ValueType = T::ValueType
The type of this value
fn map(&self, value: &T::ValueType, limit: (i32, i32)) -> i32
[src]
fn range(&self) -> Range<T::ValueType>
[src]
fn key_points(&self, max_points: usize) -> Vec<T::ValueType>
[src]
fn axis_pixel_range(&self, limit: (i32, i32)) -> Range<i32>
[src]
impl<T> DiscreteRanged for GroupBy<T> where
T::ValueType: PrimInt + ToPrimitive + FromPrimitive + Mul,
T: Ranged + DiscreteRanged,
[src]
T::ValueType: PrimInt + ToPrimitive + FromPrimitive + Mul,
T: Ranged + DiscreteRanged,
type RangeParameter = <T as DiscreteRanged>::RangeParameter
fn get_range_parameter(&self) -> Self::RangeParameter
[src]
fn previous_value(
this: &Self::ValueType,
param: &Self::RangeParameter
) -> Self::ValueType
[src]
this: &Self::ValueType,
param: &Self::RangeParameter
) -> Self::ValueType
fn next_value(
this: &Self::ValueType,
param: &Self::RangeParameter
) -> Self::ValueType
[src]
this: &Self::ValueType,
param: &Self::RangeParameter
) -> Self::ValueType
impl<T> AsRangedCoord for GroupBy<T> where
T::ValueType: PrimInt + ToPrimitive + FromPrimitive + Mul,
T: Ranged,
[src]
T::ValueType: PrimInt + ToPrimitive + FromPrimitive + Mul,
T: Ranged,
type Value = T::ValueType
type CoordDescType = Self
Auto Trait Implementations
impl<T> Send for GroupBy<T> where
T: Send,
<T as Ranged>::ValueType: Send,
T: Send,
<T as Ranged>::ValueType: Send,
impl<T> Unpin for GroupBy<T> where
T: Unpin,
<T as Ranged>::ValueType: Unpin,
T: Unpin,
<T as Ranged>::ValueType: Unpin,
impl<T> Sync for GroupBy<T> where
T: Sync,
<T as Ranged>::ValueType: Sync,
T: Sync,
<T as Ranged>::ValueType: Sync,
impl<T> UnwindSafe for GroupBy<T> where
T: UnwindSafe,
<T as Ranged>::ValueType: UnwindSafe,
T: UnwindSafe,
<T as Ranged>::ValueType: UnwindSafe,
impl<T> RefUnwindSafe for GroupBy<T> where
T: RefUnwindSafe,
<T as Ranged>::ValueType: RefUnwindSafe,
T: RefUnwindSafe,
<T as Ranged>::ValueType: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,