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: f64
X or Y value in the plot.
step_size: f64
The (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 value
s 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