Struct aliri_clock::DurationSecs [−][src]
#[repr(transparent)]pub struct DurationSecs(pub u64);
Expand description
Duration denominated in whole seconds
An unsigned duration in whole seconds. This type is just a bit more svelte than the standard duration type.
Trait Implementations
impl Add<DurationSecs> for UnixTime
[src]
impl Add<DurationSecs> for UnixTime
[src]impl Add<DurationSecs> for DurationSecs
[src]
impl Add<DurationSecs> for DurationSecs
[src]impl AddAssign<DurationSecs> for UnixTime
[src]
impl AddAssign<DurationSecs> for UnixTime
[src]fn add_assign(&mut self, other: DurationSecs)
[src]
fn add_assign(&mut self, other: DurationSecs)
[src]Performs the +=
operation. Read more
impl AddAssign<DurationSecs> for DurationSecs
[src]
impl AddAssign<DurationSecs> for DurationSecs
[src]fn add_assign(&mut self, other: Self)
[src]
fn add_assign(&mut self, other: Self)
[src]Performs the +=
operation. Read more
impl Clone for DurationSecs
[src]
impl Clone for DurationSecs
[src]fn clone(&self) -> DurationSecs
[src]
fn clone(&self) -> DurationSecs
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for DurationSecs
[src]
impl Debug for DurationSecs
[src]impl Default for DurationSecs
[src]
impl Default for DurationSecs
[src]fn default() -> DurationSecs
[src]
fn default() -> DurationSecs
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for DurationSecs
[src]
impl<'de> Deserialize<'de> for DurationSecs
[src]serde
only.fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]Deserialize this value from the given Serde deserializer. Read more
impl Display for DurationSecs
[src]
impl Display for DurationSecs
[src]impl Div<u64> for DurationSecs
[src]
impl Div<u64> for DurationSecs
[src]impl DivAssign<u64> for DurationSecs
[src]
impl DivAssign<u64> for DurationSecs
[src]fn div_assign(&mut self, other: u64)
[src]
fn div_assign(&mut self, other: u64)
[src]Performs the /=
operation. Read more
impl Mul<f64> for DurationSecs
[src]
impl Mul<f64> for DurationSecs
[src]impl Mul<u64> for DurationSecs
[src]
impl Mul<u64> for DurationSecs
[src]impl MulAssign<f64> for DurationSecs
[src]
impl MulAssign<f64> for DurationSecs
[src]fn mul_assign(&mut self, other: f64)
[src]
fn mul_assign(&mut self, other: f64)
[src]Performs the *=
operation. Read more
impl MulAssign<u64> for DurationSecs
[src]
impl MulAssign<u64> for DurationSecs
[src]fn mul_assign(&mut self, other: u64)
[src]
fn mul_assign(&mut self, other: u64)
[src]Performs the *=
operation. Read more
impl Ord for DurationSecs
[src]
impl Ord for DurationSecs
[src]impl PartialEq<DurationSecs> for DurationSecs
[src]
impl PartialEq<DurationSecs> for DurationSecs
[src]fn eq(&self, other: &DurationSecs) -> bool
[src]
fn eq(&self, other: &DurationSecs) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &DurationSecs) -> bool
[src]
fn ne(&self, other: &DurationSecs) -> bool
[src]This method tests for !=
.
impl PartialOrd<DurationSecs> for DurationSecs
[src]
impl PartialOrd<DurationSecs> for DurationSecs
[src]fn partial_cmp(&self, other: &DurationSecs) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &DurationSecs) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Serialize for DurationSecs
[src]
impl Serialize for DurationSecs
[src]serde
only.impl Sub<DurationSecs> for UnixTime
[src]
impl Sub<DurationSecs> for UnixTime
[src]impl Sub<DurationSecs> for DurationSecs
[src]
impl Sub<DurationSecs> for DurationSecs
[src]impl SubAssign<DurationSecs> for UnixTime
[src]
impl SubAssign<DurationSecs> for UnixTime
[src]fn sub_assign(&mut self, other: DurationSecs)
[src]
fn sub_assign(&mut self, other: DurationSecs)
[src]Performs the -=
operation. Read more
impl SubAssign<DurationSecs> for DurationSecs
[src]
impl SubAssign<DurationSecs> for DurationSecs
[src]fn sub_assign(&mut self, other: Self)
[src]
fn sub_assign(&mut self, other: Self)
[src]Performs the -=
operation. Read more
impl Copy for DurationSecs
[src]
impl Eq for DurationSecs
[src]
impl StructuralEq for DurationSecs
[src]
impl StructuralPartialEq for DurationSecs
[src]
Auto Trait Implementations
impl RefUnwindSafe for DurationSecs
impl Send for DurationSecs
impl Sync for DurationSecs
impl Unpin for DurationSecs
impl UnwindSafe for DurationSecs
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,