Struct etwin_core::core::FinitePeriod
source · pub struct FinitePeriod {
pub start: Instant,
pub end: Instant,
}
Fields§
§start: Instant
§end: Instant
Trait Implementations§
source§impl Clone for FinitePeriod
impl Clone for FinitePeriod
source§fn clone(&self) -> FinitePeriod
fn clone(&self) -> FinitePeriod
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 FinitePeriod
impl Debug for FinitePeriod
source§impl From<FinitePeriod> for Range<Instant>
impl From<FinitePeriod> for Range<Instant>
source§fn from(r: FinitePeriod) -> Self
fn from(r: FinitePeriod) -> Self
Converts to this type from the input type.
source§impl Hash for FinitePeriod
impl Hash for FinitePeriod
source§impl Ord for FinitePeriod
impl Ord for FinitePeriod
source§fn cmp(&self, other: &FinitePeriod) -> Ordering
fn cmp(&self, other: &FinitePeriod) -> 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<FinitePeriod> for FinitePeriod
impl PartialEq<FinitePeriod> for FinitePeriod
source§fn eq(&self, other: &FinitePeriod) -> bool
fn eq(&self, other: &FinitePeriod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<FinitePeriod> for FinitePeriod
impl PartialOrd<FinitePeriod> for FinitePeriod
source§fn partial_cmp(&self, other: &FinitePeriod) -> Option<Ordering>
fn partial_cmp(&self, other: &FinitePeriod) -> 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 more