Struct criterion_plot::axis::Properties
source · [−]pub struct Properties { /* private fields */ }
Expand description
Properties of the coordinate axes
Implementations
sourceimpl Properties
impl Properties
sourcepub fn hide(&mut self) -> &mut Properties
pub fn hide(&mut self) -> &mut Properties
Hides the axis
Note The TopX
and RightY
axes are hidden by default
sourcepub fn show(&mut self) -> &mut Properties
pub fn show(&mut self) -> &mut Properties
Makes the axis visible
Note The BottomX
and LeftY
axes are visible by default
Trait Implementations
sourceimpl Clone for Properties
impl Clone for Properties
sourcefn clone(&self) -> Properties
fn clone(&self) -> Properties
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Configure<Grid> for Properties
impl Configure<Grid> for Properties
sourcefn configure<F>(&mut self, grid: Grid, configure: F) -> &mut Properties where
F: FnOnce(&mut Properties) -> &mut Properties,
fn configure<F>(&mut self, grid: Grid, configure: F) -> &mut Properties where
F: FnOnce(&mut Properties) -> &mut Properties,
Configures the gridlines
type Properties = Properties
type Properties = Properties
The properties of what’s being configured
sourceimpl Set<Label> for Properties
impl Set<Label> for Properties
sourcefn set(&mut self, label: Label) -> &mut Properties
fn set(&mut self, label: Label) -> &mut Properties
Attaches a label to the axis
sourceimpl Set<Range> for Properties
impl Set<Range> for Properties
sourcefn set(&mut self, range: Range) -> &mut Properties
fn set(&mut self, range: Range) -> &mut Properties
Changes the range of the axis that will be shown
Note All axes are auto-scaled by default
sourceimpl Set<Scale> for Properties
impl Set<Scale> for Properties
sourcefn set(&mut self, scale: Scale) -> &mut Properties
fn set(&mut self, scale: Scale) -> &mut Properties
Sets the scale of the axis
Note All axes use a linear scale by default
sourceimpl Set<ScaleFactor> for Properties
impl Set<ScaleFactor> for Properties
sourcefn set(&mut self, factor: ScaleFactor) -> &mut Properties
fn set(&mut self, factor: ScaleFactor) -> &mut Properties
Changes the scale factor of the axis.
All the data plotted against this axis will have its corresponding coordinate scaled with this factor before being plotted.
Note The default scale factor is 1
.
sourceimpl<P, L> Set<TicLabels<P, L>> for Properties where
L: IntoIterator,
L::Item: AsRef<str>,
P: IntoIterator,
P::Item: Data,
impl<P, L> Set<TicLabels<P, L>> for Properties where
L: IntoIterator,
L::Item: AsRef<str>,
P: IntoIterator,
P::Item: Data,
sourcefn set(&mut self, tics: TicLabels<P, L>) -> &mut Properties
fn set(&mut self, tics: TicLabels<P, L>) -> &mut Properties
Attaches labels to the tics of an axis
Auto Trait Implementations
impl RefUnwindSafe for Properties
impl Send for Properties
impl Sync for Properties
impl Unpin for Properties
impl UnwindSafe for Properties
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more