pub enum DurationValue {
DoubleWhole,
Whole,
Half,
Quarter,
Eighth,
Sixteenth,
ThirtySecond,
SixtyFourth,
OneTwentyEighth,
}Variants§
Implementations§
Source§impl DurationValue
impl DurationValue
Source§impl DurationValue
impl DurationValue
pub const fn is_shorter_than_quarter_like(self) -> bool
Trait Implementations§
Source§impl Clone for DurationValue
impl Clone for DurationValue
Source§fn clone(&self) -> DurationValue
fn clone(&self) -> DurationValue
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 moreSource§impl Debug for DurationValue
impl Debug for DurationValue
Source§impl Display for DurationValue
impl Display for DurationValue
Source§impl FromStr for DurationValue
impl FromStr for DurationValue
Source§impl Hash for DurationValue
impl Hash for DurationValue
Source§impl Ord for DurationValue
impl Ord for DurationValue
Source§fn cmp(&self, other: &DurationValue) -> Ordering
fn cmp(&self, other: &DurationValue) -> 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 DurationValue
impl PartialEq for DurationValue
Source§fn eq(&self, other: &DurationValue) -> bool
fn eq(&self, other: &DurationValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DurationValue
impl PartialOrd for DurationValue
impl Copy for DurationValue
impl Eq for DurationValue
impl StructuralPartialEq for DurationValue
Auto Trait Implementations§
impl Freeze for DurationValue
impl RefUnwindSafe for DurationValue
impl Send for DurationValue
impl Sync for DurationValue
impl Unpin for DurationValue
impl UnsafeUnpin for DurationValue
impl UnwindSafe for DurationValue
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