[][src]Struct plotters_unstable::coord::combinators::WithKeyPoints

pub struct WithKeyPoints<Inner: Ranged> { /* fields omitted */ }

The coordinate decorator that binds a key point vector. Normally, all the ranged coordinate implements its own keypoint algorithm to determine how to render the tick mark and mesh grid. This decorator allows customized tick mark specifiied by vector. See BindKeyPoints::with_key_points for details. Note: For any coordinate spec wrapped by this decorator, the maxium number of labels configured by MeshStyle will be ignored and the key point function will always returns the entire vector

Implementations

impl<I: Ranged> WithKeyPoints<I>[src]

pub fn with_light_points<T: IntoIterator<Item = I::ValueType>>(
    self,
    iter: T
) -> Self
[src]

Specify the light key points, which is used to render the light mesh line

pub fn bold_points(&self) -> &[I::ValueType][src]

Get a reference to the bold points

pub fn bold_points_mut(&mut self) -> &mut [I::ValueType][src]

Get a mut reference to the bold points

pub fn light_points(&self) -> &[I::ValueType][src]

Get a reference to light key points

pub fn light_points_mut(&mut self) -> &mut [I::ValueType][src]

Get a mut reference to the light key points

Trait Implementations

impl<R: DiscreteRanged> DiscreteRanged for WithKeyPoints<R> where
    R::ValueType: Clone
[src]

impl<R: Ranged> Ranged for WithKeyPoints<R> where
    R::ValueType: Clone
[src]

type ValueType = R::ValueType

The type of this value in this range specification

type FormatOption = R::FormatOption

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, if Debug trait is not impl for the Self::Value, ValueFormatter will not impl unless you impl it manually. Read more

Auto Trait Implementations

impl<Inner> RefUnwindSafe for WithKeyPoints<Inner> where
    Inner: RefUnwindSafe,
    <Inner as Ranged>::ValueType: RefUnwindSafe

impl<Inner> Send for WithKeyPoints<Inner> where
    Inner: Send,
    <Inner as Ranged>::ValueType: Send

impl<Inner> Sync for WithKeyPoints<Inner> where
    Inner: Sync,
    <Inner as Ranged>::ValueType: Sync

impl<Inner> Unpin for WithKeyPoints<Inner> where
    Inner: Unpin,
    <Inner as Ranged>::ValueType: Unpin

impl<Inner> UnwindSafe for WithKeyPoints<Inner> where
    Inner: UnwindSafe,
    <Inner as Ranged>::ValueType: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsRangedCoord for T where
    T: Ranged
[src]

type CoordDescType = T

type Value = <T as Ranged>::ValueType

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<DC> ReversibleRanged for DC where
    DC: DiscreteRanged
[src]

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<R> ValueFormatter<<R as Ranged>::ValueType> for R where
    R: Ranged<FormatOption = DefaultFormatting>,
    <R as Ranged>::ValueType: Debug
[src]