pub struct CalDate {
pub year: i32,
pub month: u32,
pub day: u32,
}Expand description
An absolute calendar date (year, month 1–12, day 1–31).
Used by CalendarState to represent range endpoints that can span
month and year boundaries (a selected_day alone is scoped to the
currently displayed month). Available since 0.21.0.
§Example
use slt::CalDate;
let d = CalDate { year: 2024, month: 12, day: 31 };
assert_eq!((d.year, d.month, d.day), (2024, 12, 31));Fields§
§year: i32Calendar year.
month: u32Month of year, 1–12.
day: u32Day of month, 1–31.
Trait Implementations§
impl Copy for CalDate
impl Eq for CalDate
impl StructuralPartialEq for CalDate
Auto Trait Implementations§
impl Freeze for CalDate
impl RefUnwindSafe for CalDate
impl Send for CalDate
impl Sync for CalDate
impl Unpin for CalDate
impl UnsafeUnpin for CalDate
impl UnwindSafe for CalDate
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
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.