Struct chain_time::timeline::TimeOffsetSeconds
source · pub struct TimeOffsetSeconds(pub(crate) DurationSeconds);
Expand description
Represent an offset in seconds in the timeline
Tuple Fields§
§0: DurationSeconds
Trait Implementations§
source§impl Arbitrary for TimeOffsetSeconds
impl Arbitrary for TimeOffsetSeconds
§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<TimeOffsetSeconds>
type Strategy = BoxedStrategy<TimeOffsetSeconds>
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 TimeOffsetSeconds
impl Clone for TimeOffsetSeconds
source§fn clone(&self) -> TimeOffsetSeconds
fn clone(&self) -> TimeOffsetSeconds
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 TimeOffsetSeconds
impl Debug for TimeOffsetSeconds
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<TimeOffsetSeconds> for TimeOffset
impl From<TimeOffsetSeconds> for TimeOffset
source§fn from(v: TimeOffsetSeconds) -> TimeOffset
fn from(v: TimeOffsetSeconds) -> TimeOffset
Converts to this type from the input type.
source§impl From<TimeOffsetSeconds> for u64
impl From<TimeOffsetSeconds> for u64
source§fn from(v: TimeOffsetSeconds) -> Self
fn from(v: TimeOffsetSeconds) -> Self
Converts to this type from the input type.
source§impl Hash for TimeOffsetSeconds
impl Hash for TimeOffsetSeconds
source§impl Ord for TimeOffsetSeconds
impl Ord for TimeOffsetSeconds
source§fn cmp(&self, other: &TimeOffsetSeconds) -> Ordering
fn cmp(&self, other: &TimeOffsetSeconds) -> 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<TimeOffsetSeconds> for TimeOffsetSeconds
impl PartialEq<TimeOffsetSeconds> for TimeOffsetSeconds
source§fn eq(&self, other: &TimeOffsetSeconds) -> bool
fn eq(&self, other: &TimeOffsetSeconds) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TimeOffsetSeconds> for TimeOffsetSeconds
impl PartialOrd<TimeOffsetSeconds> for TimeOffsetSeconds
source§fn partial_cmp(&self, other: &TimeOffsetSeconds) -> Option<Ordering>
fn partial_cmp(&self, other: &TimeOffsetSeconds) -> 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 TimeOffsetSeconds
impl Eq for TimeOffsetSeconds
impl StructuralEq for TimeOffsetSeconds
impl StructuralPartialEq for TimeOffsetSeconds
Auto Trait Implementations§
impl RefUnwindSafe for TimeOffsetSeconds
impl Send for TimeOffsetSeconds
impl Sync for TimeOffsetSeconds
impl Unpin for TimeOffsetSeconds
impl UnwindSafe for TimeOffsetSeconds
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