Struct chain_time::units::DurationSeconds
source · pub struct DurationSeconds(pub u64);
Expand description
Represent a Duration where the maximum precision is in the second
Tuple Fields§
§0: u64
Trait Implementations§
source§impl Arbitrary for DurationSeconds
impl Arbitrary for DurationSeconds
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = BoxedStrategy<DurationSeconds>
type Strategy = BoxedStrategy<DurationSeconds>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl Clone for DurationSeconds
impl Clone for DurationSeconds
source§fn clone(&self) -> DurationSeconds
fn clone(&self) -> DurationSeconds
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 DurationSeconds
impl Debug for DurationSeconds
source§impl From<DurationSeconds> for Duration
impl From<DurationSeconds> for Duration
source§fn from(v: DurationSeconds) -> Self
fn from(v: DurationSeconds) -> Self
Converts to this type from the input type.
source§impl From<DurationSeconds> for TimeOffsetSeconds
impl From<DurationSeconds> for TimeOffsetSeconds
source§fn from(v: DurationSeconds) -> Self
fn from(v: DurationSeconds) -> Self
Converts to this type from the input type.
source§impl From<DurationSeconds> for u64
impl From<DurationSeconds> for u64
source§fn from(v: DurationSeconds) -> Self
fn from(v: DurationSeconds) -> Self
Converts to this type from the input type.
source§impl From<u64> for DurationSeconds
impl From<u64> for DurationSeconds
source§impl Hash for DurationSeconds
impl Hash for DurationSeconds
source§impl Ord for DurationSeconds
impl Ord for DurationSeconds
source§fn cmp(&self, other: &DurationSeconds) -> Ordering
fn cmp(&self, other: &DurationSeconds) -> 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<DurationSeconds> for DurationSeconds
impl PartialEq<DurationSeconds> for DurationSeconds
source§fn eq(&self, other: &DurationSeconds) -> bool
fn eq(&self, other: &DurationSeconds) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DurationSeconds> for DurationSeconds
impl PartialOrd<DurationSeconds> for DurationSeconds
source§fn partial_cmp(&self, other: &DurationSeconds) -> Option<Ordering>
fn partial_cmp(&self, other: &DurationSeconds) -> 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 Copy for DurationSeconds
impl Eq for DurationSeconds
impl StructuralEq for DurationSeconds
impl StructuralPartialEq for DurationSeconds
Auto Trait Implementations§
impl RefUnwindSafe for DurationSeconds
impl Send for DurationSeconds
impl Sync for DurationSeconds
impl Unpin for DurationSeconds
impl UnwindSafe for DurationSeconds
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