Struct gr::time::Milliseconds
source · pub struct Milliseconds(/* private fields */);Implementations§
Methods from Deref<Target = u64>§
pub const MIN: u64 = 0u64
pub const MAX: u64 = 18_446_744_073_709_551_615u64
pub const BITS: u32 = 64u32
Trait Implementations§
source§impl Add for Milliseconds
impl Add for Milliseconds
§type Output = Milliseconds
type Output = Milliseconds
The resulting type after applying the
+ operator.source§impl AddAssign for Milliseconds
impl AddAssign for Milliseconds
source§fn add_assign(&mut self, rhs: Milliseconds)
fn add_assign(&mut self, rhs: Milliseconds)
Performs the
+= operation. Read moresource§impl Clone for Milliseconds
impl Clone for Milliseconds
source§fn clone(&self) -> Milliseconds
fn clone(&self) -> Milliseconds
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 Milliseconds
impl Debug for Milliseconds
source§impl Default for Milliseconds
impl Default for Milliseconds
source§fn default() -> Milliseconds
fn default() -> Milliseconds
Returns the “default value” for a type. Read more
source§impl Display for Milliseconds
impl Display for Milliseconds
source§impl From<Milliseconds> for Duration
impl From<Milliseconds> for Duration
source§fn from(milliseconds: Milliseconds) -> Self
fn from(milliseconds: Milliseconds) -> Self
Converts to this type from the input type.
source§impl From<Seconds> for Milliseconds
impl From<Seconds> for Milliseconds
source§impl From<u64> for Milliseconds
impl From<u64> for Milliseconds
source§impl Ord for Milliseconds
impl Ord for Milliseconds
source§fn cmp(&self, other: &Milliseconds) -> Ordering
fn cmp(&self, other: &Milliseconds) -> 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 Milliseconds
impl PartialEq for Milliseconds
source§fn eq(&self, other: &Milliseconds) -> bool
fn eq(&self, other: &Milliseconds) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for Milliseconds
impl PartialOrd for Milliseconds
source§fn partial_cmp(&self, other: &Milliseconds) -> Option<Ordering>
fn partial_cmp(&self, other: &Milliseconds) -> 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 moresource§impl Deref for Milliseconds
impl Deref for Milliseconds
impl Copy for Milliseconds
impl Eq for Milliseconds
impl StructuralPartialEq for Milliseconds
Auto Trait Implementations§
impl Freeze for Milliseconds
impl RefUnwindSafe for Milliseconds
impl Send for Milliseconds
impl Sync for Milliseconds
impl Unpin for Milliseconds
impl UnwindSafe for Milliseconds
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)