Struct wmi::duration::WMIDuration
source · pub struct WMIDuration(pub Duration);
Expand description
A wrapper type around Duration, which supports parsing from WMI-format strings.
Tuple Fields§
§0: Duration
Trait Implementations§
source§impl Clone for WMIDuration
impl Clone for WMIDuration
source§fn clone(&self) -> WMIDuration
fn clone(&self) -> WMIDuration
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 WMIDuration
impl Debug for WMIDuration
source§impl<'de> Deserialize<'de> for WMIDuration
impl<'de> Deserialize<'de> for WMIDuration
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 FromStr for WMIDuration
impl FromStr for WMIDuration
source§impl Ord for WMIDuration
impl Ord for WMIDuration
source§fn cmp(&self, other: &WMIDuration) -> Ordering
fn cmp(&self, other: &WMIDuration) -> 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 WMIDuration
impl PartialEq for WMIDuration
source§fn eq(&self, other: &WMIDuration) -> bool
fn eq(&self, other: &WMIDuration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for WMIDuration
impl PartialOrd for WMIDuration
source§fn partial_cmp(&self, other: &WMIDuration) -> Option<Ordering>
fn partial_cmp(&self, other: &WMIDuration) -> 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 Serialize for WMIDuration
impl Serialize for WMIDuration
impl Copy for WMIDuration
impl Eq for WMIDuration
impl StructuralPartialEq for WMIDuration
Auto Trait Implementations§
impl RefUnwindSafe for WMIDuration
impl Send for WMIDuration
impl Sync for WMIDuration
impl Unpin for WMIDuration
impl UnwindSafe for WMIDuration
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