Struct fancy_duration::FancyDuration
source · pub struct FancyDuration<D: AsSecs>(pub D);Tuple Fields§
§0: DImplementations§
Trait Implementations§
source§impl<D: Clone + AsSecs> Clone for FancyDuration<D>
impl<D: Clone + AsSecs> Clone for FancyDuration<D>
source§fn clone(&self) -> FancyDuration<D>
fn clone(&self) -> FancyDuration<D>
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<'de, T> Deserialize<'de> for FancyDuration<T>where
T: AsSecs,
impl<'de, T> Deserialize<'de> for FancyDuration<T>where T: AsSecs,
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
source§impl<D: PartialEq + AsSecs> PartialEq<FancyDuration<D>> for FancyDuration<D>
impl<D: PartialEq + AsSecs> PartialEq<FancyDuration<D>> for FancyDuration<D>
source§fn eq(&self, other: &FancyDuration<D>) -> bool
fn eq(&self, other: &FancyDuration<D>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<D> Serialize for FancyDuration<D>where
D: AsSecs,
impl<D> Serialize for FancyDuration<D>where D: AsSecs,
source§impl<D> ToString for FancyDuration<D>where
D: AsSecs,
impl<D> ToString for FancyDuration<D>where D: AsSecs,
impl<D: AsSecs> StructuralPartialEq for FancyDuration<D>
Auto Trait Implementations§
impl<D> RefUnwindSafe for FancyDuration<D>where D: RefUnwindSafe,
impl<D> Send for FancyDuration<D>where D: Send,
impl<D> Sync for FancyDuration<D>where D: Sync,
impl<D> Unpin for FancyDuration<D>where D: Unpin,
impl<D> UnwindSafe for FancyDuration<D>where D: UnwindSafe,
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