pub enum Era {
Past,
Present,
}
Expand description
An Era
represents whether the associated Instant
is before the TAI Epoch
(01 Jan 1900, midnight) or afterwards. If it is before, than it’s refered to as “Past”,
otherwise is in the “Present” era.
use hifitime::instant::Era;
assert!(Era::Past < Era::Present);
Variants
Past
Present
Trait Implementations
sourceimpl PartialOrd<Era> for Era
impl PartialOrd<Era> for Era
sourcefn partial_cmp(&self, other: &Era) -> Option<Ordering>
fn partial_cmp(&self, other: &Era) -> Option<Ordering>
1.0.0 · sourcefn 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 Era
impl StructuralPartialEq for Era
Auto Trait Implementations
impl RefUnwindSafe for Era
impl Send for Era
impl Sync for Era
impl Unpin for Era
impl UnwindSafe for Era
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more