pub struct CommonDate {
pub year: i32,
pub month: u8,
pub day: u8,
}
Expand description
Represents a combination of numeric year, month and day
This is not specific to any particular calendar system.
Fields§
§year: i32
§month: u8
§day: u8
Implementations§
Source§impl CommonDate
impl CommonDate
Trait Implementations§
Source§impl Clone for CommonDate
impl Clone for CommonDate
Source§fn clone(&self) -> CommonDate
fn clone(&self) -> CommonDate
Returns a duplicate 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 CommonDate
impl Debug for CommonDate
Source§impl PartialEq for CommonDate
impl PartialEq for CommonDate
Source§impl PartialOrd for CommonDate
impl PartialOrd for CommonDate
impl Copy for CommonDate
impl StructuralPartialEq for CommonDate
Auto Trait Implementations§
impl Freeze for CommonDate
impl RefUnwindSafe for CommonDate
impl Send for CommonDate
impl Sync for CommonDate
impl Unpin for CommonDate
impl UnwindSafe for CommonDate
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