Struct date::DateInterval
source · #[repr(transparent)]pub struct DateInterval {
pub days: i32,
}
Expand description
DateInterval with day-level precision only.
Fields§
§days: i32
Implementations§
Trait Implementations§
source§impl Add<DateInterval> for Date
impl Add<DateInterval> for Date
source§impl AddAssign<DateInterval> for Date
impl AddAssign<DateInterval> for Date
source§fn add_assign(&mut self, interval: DateInterval)
fn add_assign(&mut self, interval: DateInterval)
Performs the
+=
operation. Read moresource§impl Clone for DateInterval
impl Clone for DateInterval
source§fn clone(&self) -> DateInterval
fn clone(&self) -> DateInterval
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 DateInterval
impl Debug for DateInterval
source§impl Neg for DateInterval
impl Neg for DateInterval
source§impl Ord for DateInterval
impl Ord for DateInterval
source§fn cmp(&self, other: &DateInterval) -> Ordering
fn cmp(&self, other: &DateInterval) -> 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 for DateInterval
impl PartialEq for DateInterval
source§fn eq(&self, other: &DateInterval) -> bool
fn eq(&self, other: &DateInterval) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DateInterval
impl PartialOrd for DateInterval
source§fn partial_cmp(&self, other: &DateInterval) -> Option<Ordering>
fn partial_cmp(&self, other: &DateInterval) -> 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 moresource§impl Sub<DateInterval> for Date
impl Sub<DateInterval> for Date
source§impl SubAssign<DateInterval> for Date
impl SubAssign<DateInterval> for Date
source§fn sub_assign(&mut self, interval: DateInterval)
fn sub_assign(&mut self, interval: DateInterval)
Performs the
-=
operation. Read moreimpl Copy for DateInterval
impl Eq for DateInterval
impl StructuralPartialEq for DateInterval
Auto Trait Implementations§
impl Freeze for DateInterval
impl RefUnwindSafe for DateInterval
impl Send for DateInterval
impl Sync for DateInterval
impl Unpin for DateInterval
impl UnwindSafe for DateInterval
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