pub struct LocalDate<Y = SimpleYear> {
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<Y: Ord> Ord for LocalDate<Y>
impl<Y: Ord> 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<Y: PartialOrd> PartialOrd for LocalDate<Y>
impl<Y: PartialOrd> PartialOrd for LocalDate<Y>
impl<Y: Copy> Copy for LocalDate<Y>
impl<Y: Eq> Eq for LocalDate<Y>
impl<Y> StructuralPartialEq for LocalDate<Y>
Auto Trait Implementations§
impl<Y> Freeze for LocalDate<Y>where
Y: Freeze,
impl<Y> RefUnwindSafe for LocalDate<Y>where
Y: RefUnwindSafe,
impl<Y> Send for LocalDate<Y>where
Y: Send,
impl<Y> Sync for LocalDate<Y>where
Y: Sync,
impl<Y> Unpin for LocalDate<Y>where
Y: Unpin,
impl<Y> UnwindSafe for LocalDate<Y>where
Y: UnwindSafe,
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