pub struct BoundDate {
pub year: i64,
pub month: u8,
pub day: u8,
}Expand description
A concrete proleptic-Gregorian calendar day used as a bound.
Ordering is calendrical (year, then month, then day). Year is astronomical numbering: 0 is a leap year, -1 precedes it.
Fields§
§year: i64Astronomical year number.
month: u8Calendar month 1–12.
day: u8Calendar day of month 1–31.
Trait Implementations§
impl Copy for BoundDate
impl Eq for BoundDate
Source§impl Ord for BoundDate
impl Ord for BoundDate
1.21.0 (const: unstable) · 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 PartialOrd for BoundDate
impl PartialOrd for BoundDate
impl StructuralPartialEq for BoundDate
Auto Trait Implementations§
impl Freeze for BoundDate
impl RefUnwindSafe for BoundDate
impl Send for BoundDate
impl Sync for BoundDate
impl Unpin for BoundDate
impl UnsafeUnpin for BoundDate
impl UnwindSafe for BoundDate
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