Struct calendrical_calculations::rata_die::Moment
source · pub struct Moment(f64);
Expand description
A moment is a RataDie with a fractional part giving the time of day.
NOTE: This should not cause overflow errors for most cases, but consider alternative implementations if necessary.
Tuple Fields§
§0: f64
Implementations§
Trait Implementations§
source§impl AddAssign<f64> for Moment
impl AddAssign<f64> for Moment
source§fn add_assign(&mut self, rhs: f64)
fn add_assign(&mut self, rhs: f64)
Performs the
+=
operation. Read moresource§impl PartialEq for Moment
impl PartialEq for Moment
source§impl PartialOrd for Moment
impl PartialOrd for Moment
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 moresource§impl SubAssign<f64> for Moment
impl SubAssign<f64> for Moment
source§fn sub_assign(&mut self, rhs: f64)
fn sub_assign(&mut self, rhs: f64)
Performs the
-=
operation. Read moreimpl Copy for Moment
impl StructuralPartialEq for Moment
Auto Trait Implementations§
impl Freeze for Moment
impl RefUnwindSafe for Moment
impl Send for Moment
impl Sync for Moment
impl Unpin for Moment
impl UnwindSafe for Moment
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