Struct date_differencer::DateDiffResult
source · pub struct DateDiffResult {
pub years: i32,
pub months: i32,
pub days: i32,
}Expand description
The result of the date_diff function.
Fields§
§years: i32§months: i32§days: i32Trait Implementations§
source§impl Clone for DateDiffResult
impl Clone for DateDiffResult
source§fn clone(&self) -> DateDiffResult
fn clone(&self) -> DateDiffResult
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 DateTimeDiff for DateDiffResult
impl DateTimeDiff for DateDiffResult
source§impl Debug for DateDiffResult
impl Debug for DateDiffResult
source§impl Default for DateDiffResult
impl Default for DateDiffResult
source§fn default() -> DateDiffResult
fn default() -> DateDiffResult
Returns the “default value” for a type. Read more
source§impl From<DateDiffResult> for DateTimeDiffResult
impl From<DateDiffResult> for DateTimeDiffResult
source§fn from(value: DateDiffResult) -> Self
fn from(value: DateDiffResult) -> Self
Converts to this type from the input type.
source§impl From<DateTimeDiffResult> for DateDiffResult
impl From<DateTimeDiffResult> for DateDiffResult
source§fn from(value: DateTimeDiffResult) -> Self
fn from(value: DateTimeDiffResult) -> Self
Converts to this type from the input type.
source§impl PartialEq<DateDiffResult> for DateDiffResult
impl PartialEq<DateDiffResult> for DateDiffResult
source§fn eq(&self, other: &DateDiffResult) -> bool
fn eq(&self, other: &DateDiffResult) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for DateDiffResult
impl StructuralEq for DateDiffResult
impl StructuralPartialEq for DateDiffResult
Auto Trait Implementations§
impl RefUnwindSafe for DateDiffResult
impl Send for DateDiffResult
impl Sync for DateDiffResult
impl Unpin for DateDiffResult
impl UnwindSafe for DateDiffResult
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