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 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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more