Struct datetimeparse::LocalDate
source · pub struct LocalDate<const Y: usize = 4> {
pub year: Year<Y>,
pub month: Month,
pub day: Day,
}Expand description
Date without time shift information
Fields§
§year: Year<Y>§month: Month§day: DayImplementations§
Trait Implementations§
source§impl<const Y: usize> Ord for LocalDate<Y>
impl<const Y: usize> Ord for LocalDate<Y>
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<const Y: usize> PartialEq<LocalDate<Y>> for LocalDate<Y>
impl<const Y: usize> PartialEq<LocalDate<Y>> for LocalDate<Y>
source§impl<const Y: usize> PartialOrd<LocalDate<Y>> for LocalDate<Y>
impl<const Y: usize> PartialOrd<LocalDate<Y>> for LocalDate<Y>
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<Y, M, D> TryFrom<(Y, M, D)> for LocalDatewhere
Y: TryInto<Year, Error = Error>,
M: TryInto<Month, Error = Error>,
D: TryInto<Day, Error = Error>,
impl<Y, M, D> TryFrom<(Y, M, D)> for LocalDatewhere Y: TryInto<Year, Error = Error>, M: TryInto<Month, Error = Error>, D: TryInto<Day, Error = Error>,
impl<const Y: usize> Copy for LocalDate<Y>
impl<const Y: usize> Eq for LocalDate<Y>
impl<const Y: usize> StructuralEq for LocalDate<Y>
impl<const Y: usize> StructuralPartialEq for LocalDate<Y>
Auto Trait Implementations§
impl<const Y: usize> RefUnwindSafe for LocalDate<Y>
impl<const Y: usize> Send for LocalDate<Y>
impl<const Y: usize> Sync for LocalDate<Y>
impl<const Y: usize> Unpin for LocalDate<Y>
impl<const Y: usize> UnwindSafe for LocalDate<Y>
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