Enum gnuplot::TickOption
source · pub enum TickOption<T> {
OnAxis(bool),
Mirror(bool),
Inward(bool),
MinorScale(f64),
MajorScale(f64),
Format(T),
}
Expand description
An enumeration of axis tick options
Variants§
OnAxis(bool)
Specifies whether the ticks are drawn at the borders of the plot, or on the axis
Mirror(bool)
If the axes are drawn on the border, this specifies whether to draw the ticks on the opposite border as well
Inward(bool)
If the axes are drawn on the border, this specifies whether to draw the ticks pointing inward or outward
MinorScale(f64)
Sets the scale of the minor ticks
MajorScale(f64)
Sets the scale of the major ticks
Format(T)
Format of the tick labels, e.g. “%.1f ms” will produces labels with “1 ms, 2 ms” etc.
Trait Implementations§
source§impl<T: Clone> Clone for TickOption<T>
impl<T: Clone> Clone for TickOption<T>
source§fn clone(&self) -> TickOption<T>
fn clone(&self) -> TickOption<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for TickOption<T>
impl<T: Debug> Debug for TickOption<T>
source§impl<T: PartialEq> PartialEq for TickOption<T>
impl<T: PartialEq> PartialEq for TickOption<T>
source§fn eq(&self, other: &TickOption<T>) -> bool
fn eq(&self, other: &TickOption<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd> PartialOrd for TickOption<T>
impl<T: PartialOrd> PartialOrd for TickOption<T>
source§fn partial_cmp(&self, other: &TickOption<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &TickOption<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Copy> Copy for TickOption<T>
impl<T> StructuralPartialEq for TickOption<T>
Auto Trait Implementations§
impl<T> Freeze for TickOption<T>where
T: Freeze,
impl<T> RefUnwindSafe for TickOption<T>where
T: RefUnwindSafe,
impl<T> Send for TickOption<T>where
T: Send,
impl<T> Sync for TickOption<T>where
T: Sync,
impl<T> Unpin for TickOption<T>where
T: Unpin,
impl<T> UnwindSafe for TickOption<T>where
T: UnwindSafe,
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