pub enum Tick<T, S> {
Major(T, AutoOption<S>),
Minor(T),
}
Expand description
Specifies a type of axis tick
Variants§
Major(T, AutoOption<S>)
Major ticks have position and an optional label. The label may have a single C-style format specifier which will be replaced by the location of the tick
Minor(T)
Minor ticks only have position
Trait Implementations§
source§impl<T: Ord, S: Ord> Ord for Tick<T, S>
impl<T: Ord, S: Ord> Ord for Tick<T, S>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq, S: PartialEq> PartialEq for Tick<T, S>
impl<T: PartialEq, S: PartialEq> PartialEq for Tick<T, S>
source§impl<T: PartialOrd, S: PartialOrd> PartialOrd for Tick<T, S>
impl<T: PartialOrd, S: PartialOrd> PartialOrd for Tick<T, S>
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: Eq, S: Eq> Eq for Tick<T, S>
impl<T, S> StructuralEq for Tick<T, S>
impl<T, S> StructuralPartialEq for Tick<T, S>
Auto Trait Implementations§
impl<T, S> RefUnwindSafe for Tick<T, S>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for Tick<T, S>
impl<T, S> Sync for Tick<T, S>
impl<T, S> Unpin for Tick<T, S>
impl<T, S> UnwindSafe for Tick<T, S>where
S: UnwindSafe,
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