pub struct SimpleDate {
pub year: i32,
pub month: u32,
pub day: u32,
}Expand description
A calendar date, with no time-of-day and no timezone.
Only an intermediate: cells hold an Excel serial, not a SimpleDate. This
is what parse_date produces and what date_to_excel_serial consumes,
so the calendar arithmetic happens in one place.
Fields§
§year: i32Full year, four digits – a two-digit year is widened by parse_date.
month: u32Month, 1-12.
day: u32Day of month, 1-31.
Trait Implementations§
Source§impl Clone for SimpleDate
impl Clone for SimpleDate
Source§fn clone(&self) -> SimpleDate
fn clone(&self) -> SimpleDate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SimpleDate
Source§impl Debug for SimpleDate
impl Debug for SimpleDate
impl Eq for SimpleDate
Source§impl PartialEq for SimpleDate
impl PartialEq for SimpleDate
impl StructuralPartialEq for SimpleDate
Auto Trait Implementations§
impl Freeze for SimpleDate
impl RefUnwindSafe for SimpleDate
impl Send for SimpleDate
impl Sync for SimpleDate
impl Unpin for SimpleDate
impl UnsafeUnpin for SimpleDate
impl UnwindSafe for SimpleDate
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.