pub struct GridMark {
pub value: f64,
pub step_size: f64,
}Expand description
One mark (horizontal or vertical line) in the background grid of a plot.
Fields§
§value: f64X or Y value in the plot.
step_size: f64The (approximate) distance to the next value of same thickness.
Determines how thick the grid line is painted. It’s not important that step_size
matches the difference between two values precisely, but rather that grid marks of
same thickness have same step_size. For example, months can have a different number
of days, but consistently using a step_size of 30 days is a valid approximation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GridMark
impl RefUnwindSafe for GridMark
impl Send for GridMark
impl Sync for GridMark
impl Unpin for GridMark
impl UnwindSafe for GridMark
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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