pub enum TickWeight {
Second,
Minute,
Min5,
Min15,
Min30,
Hour,
Day,
Month,
Year,
}Expand description
How big a calendar boundary a time label marks. Higher is more important.
§Examples
use ferrochart_core::time_scale::TickWeight;
assert!(TickWeight::Year > TickWeight::Month);Variants§
Second
A new second.
Minute
A new minute.
Min5
A new 5-minute slot.
Min15
A new 15-minute slot.
Min30
A new 30-minute slot.
Hour
A new hour.
Day
A new day.
Month
A new month.
Year
A new year.
Trait Implementations§
Source§impl Clone for TickWeight
impl Clone for TickWeight
impl Copy for TickWeight
Source§impl Debug for TickWeight
impl Debug for TickWeight
impl Eq for TickWeight
Source§impl Hash for TickWeight
impl Hash for TickWeight
Source§impl Ord for TickWeight
impl Ord for TickWeight
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TickWeight
impl PartialEq for TickWeight
Source§impl PartialOrd for TickWeight
impl PartialOrd for TickWeight
impl StructuralPartialEq for TickWeight
Auto Trait Implementations§
impl Forget for TickWeight
impl Freeze for TickWeight
impl Move for TickWeight
impl RefUnwindSafe for TickWeight
impl Send for TickWeight
impl Sync for TickWeight
impl Unpin for TickWeight
impl UnsafeUnpin for TickWeight
impl UnwindSafe for TickWeight
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