Enum ambient_time::DurationScale
source · pub enum DurationScale {
Milliseconds,
Seconds,
Minutes,
Hours,
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for DurationScale
impl Clone for DurationScale
source§fn clone(&self) -> DurationScale
fn clone(&self) -> DurationScale
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 Debug for DurationScale
impl Debug for DurationScale
source§impl Hash for DurationScale
impl Hash for DurationScale
source§impl Ord for DurationScale
impl Ord for DurationScale
source§fn cmp(&self, other: &DurationScale) -> Ordering
fn cmp(&self, other: &DurationScale) -> Ordering
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 PartialEq for DurationScale
impl PartialEq for DurationScale
source§fn eq(&self, other: &DurationScale) -> bool
fn eq(&self, other: &DurationScale) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DurationScale
impl PartialOrd for DurationScale
source§fn partial_cmp(&self, other: &DurationScale) -> Option<Ordering>
fn partial_cmp(&self, other: &DurationScale) -> 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 Eq for DurationScale
impl StructuralEq for DurationScale
impl StructuralPartialEq for DurationScale
Auto Trait Implementations§
impl RefUnwindSafe for DurationScale
impl Send for DurationScale
impl Sync for DurationScale
impl Unpin for DurationScale
impl UnwindSafe for DurationScale
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