pub struct TickMarkWeight(/* private fields */);Expand description
Weight of a tick mark (0-100 scale) Higher weight = more important mark = displayed at lower zoom levels
Implementations§
Source§impl TickMarkWeight
impl TickMarkWeight
Sourcepub const YEAR: TickMarkWeight
pub const YEAR: TickMarkWeight
Weight for year boundaries
Sourcepub const MONTH: TickMarkWeight
pub const MONTH: TickMarkWeight
Weight for month boundaries
Sourcepub const WEEK: TickMarkWeight
pub const WEEK: TickMarkWeight
Weight for week boundaries
Sourcepub const DAY: TickMarkWeight
pub const DAY: TickMarkWeight
Weight for day boundaries
Sourcepub const HOUR_4: TickMarkWeight
pub const HOUR_4: TickMarkWeight
Weight for 4-hour marks
Sourcepub const HOUR: TickMarkWeight
pub const HOUR: TickMarkWeight
Weight for hour boundaries
Sourcepub const MIN_30: TickMarkWeight
pub const MIN_30: TickMarkWeight
Weight for 30-minute marks
Sourcepub const MIN_15: TickMarkWeight
pub const MIN_15: TickMarkWeight
Weight for 15-minute marks
Sourcepub const MIN_5: TickMarkWeight
pub const MIN_5: TickMarkWeight
Weight for 5-minute marks
Sourcepub const MINUTE: TickMarkWeight
pub const MINUTE: TickMarkWeight
Weight for minute boundaries
Sourcepub const SEC_10: TickMarkWeight
pub const SEC_10: TickMarkWeight
Weight for 10-second marks
Sourcepub const SECOND: TickMarkWeight
pub const SECOND: TickMarkWeight
Weight for second boundaries
Sourcepub const SUBSECOND: TickMarkWeight
pub const SUBSECOND: TickMarkWeight
Weight for sub-second marks
Trait Implementations§
Source§impl Clone for TickMarkWeight
impl Clone for TickMarkWeight
Source§fn clone(&self) -> TickMarkWeight
fn clone(&self) -> TickMarkWeight
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TickMarkWeight
Source§impl Debug for TickMarkWeight
impl Debug for TickMarkWeight
Source§impl<'de> Deserialize<'de> for TickMarkWeight
impl<'de> Deserialize<'de> for TickMarkWeight
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TickMarkWeight
Source§impl Ord for TickMarkWeight
impl Ord for TickMarkWeight
Source§fn cmp(&self, other: &TickMarkWeight) -> Ordering
fn cmp(&self, other: &TickMarkWeight) -> Ordering
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
Source§impl PartialEq for TickMarkWeight
impl PartialEq for TickMarkWeight
Source§impl PartialOrd for TickMarkWeight
impl PartialOrd for TickMarkWeight
Source§impl Serialize for TickMarkWeight
impl Serialize for TickMarkWeight
impl StructuralPartialEq for TickMarkWeight
Auto Trait Implementations§
impl Freeze for TickMarkWeight
impl RefUnwindSafe for TickMarkWeight
impl Send for TickMarkWeight
impl Sync for TickMarkWeight
impl Unpin for TickMarkWeight
impl UnsafeUnpin for TickMarkWeight
impl UnwindSafe for TickMarkWeight
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more