pub struct TickMarkGenerator { /* private fields */ }Expand description
Smart time axis mark generator Implements intelligent mark distribution algorithm
Implementations§
Source§impl TickMarkGenerator
impl TickMarkGenerator
Sourcepub fn with_config(config: TickMarkGeneratorConfig) -> Self
pub fn with_config(config: TickMarkGeneratorConfig) -> Self
Create a new tick mark generator with custom config
Sourcepub fn with_formatter(
config: TickMarkGeneratorConfig,
formatter: Box<dyn TimeFormatter>,
) -> Self
pub fn with_formatter( config: TickMarkGeneratorConfig, formatter: Box<dyn TimeFormatter>, ) -> Self
Create a new tick mark generator with custom formatter
Sourcepub fn with_uniform_distribution(self, uniform: bool) -> Self
pub fn with_uniform_distribution(self, uniform: bool) -> Self
Keeps marks of one weight all or none (default false): when a mark of some weight
does not fit between the marks already placed, that weight and every lighter one are
left out, so labels of one kind stay evenly spaced.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TickMarkGenerator
impl !UnwindSafe for TickMarkGenerator
impl Freeze for TickMarkGenerator
impl Send for TickMarkGenerator
impl Sync for TickMarkGenerator
impl Unpin for TickMarkGenerator
impl UnsafeUnpin for TickMarkGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more