[−][src]Struct plotters_unstable::coord::combinators::WithKeyPoints
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]
self,
iter: T
) -> Self
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]
R::ValueType: Clone,
fn size(&self) -> usize
[src]
fn index_of(&self, value: &Self::ValueType) -> Option<usize>
[src]
fn from_index(&self, index: usize) -> Option<Self::ValueType>
[src]
fn values(&self) -> DiscreteValueIter<'_, Self> where
Self: Sized,
[src]
Self: Sized,
fn previous(&self, value: &Self::ValueType) -> Option<Self::ValueType>
[src]
fn next(&self, value: &Self::ValueType) -> Option<Self::ValueType>
[src]
impl<R: Ranged> Ranged for WithKeyPoints<R> where
R::ValueType: Clone,
[src]
R::ValueType: Clone,
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
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]
Auto Trait Implementations
impl<Inner> RefUnwindSafe for WithKeyPoints<Inner> where
Inner: RefUnwindSafe,
<Inner as Ranged>::ValueType: RefUnwindSafe,
Inner: RefUnwindSafe,
<Inner as Ranged>::ValueType: RefUnwindSafe,
impl<Inner> Send for WithKeyPoints<Inner> where
Inner: Send,
<Inner as Ranged>::ValueType: Send,
Inner: Send,
<Inner as Ranged>::ValueType: Send,
impl<Inner> Sync for WithKeyPoints<Inner> where
Inner: Sync,
<Inner as Ranged>::ValueType: Sync,
Inner: Sync,
<Inner as Ranged>::ValueType: Sync,
impl<Inner> Unpin for WithKeyPoints<Inner> where
Inner: Unpin,
<Inner as Ranged>::ValueType: Unpin,
Inner: Unpin,
<Inner as Ranged>::ValueType: Unpin,
impl<Inner> UnwindSafe for WithKeyPoints<Inner> where
Inner: UnwindSafe,
<Inner as Ranged>::ValueType: UnwindSafe,
Inner: UnwindSafe,
<Inner as Ranged>::ValueType: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsRangedCoord for T where
T: Ranged,
[src]
T: Ranged,
type CoordDescType = T
type Value = <T as Ranged>::ValueType
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<DC> ReversibleRanged for DC where
DC: DiscreteRanged,
[src]
DC: DiscreteRanged,
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<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<R> ValueFormatter<<R as Ranged>::ValueType> for R where
R: Ranged<FormatOption = DefaultFormatting>,
<R as Ranged>::ValueType: Debug,
[src]
R: Ranged<FormatOption = DefaultFormatting>,
<R as Ranged>::ValueType: Debug,