pub struct EuvCalendarDay {
pub day: u32,
pub muted: bool,
pub today: bool,
}Expand description
One cell of the euv_calendar day grid.
The calendar is pure presentation: the caller computes the month, the leading/trailing spill-over cells and the today flag, then hands the finished grid in. This keeps the component free of date arithmetic.
Fields§
§day: u32The day-of-month number rendered inside the cell.
muted: boolWhether the cell belongs to the previous or next month.
Drives the _muted modifier so spill-over cells read as secondary
without changing the grid’s shape.
today: boolWhether the cell is today’s date.
Implementations§
Source§impl EuvCalendarDay
impl EuvCalendarDay
pub fn get_day(&self) -> u32
pub fn get_mut_day(&mut self) -> &mut u32
pub fn set_day(&mut self, val: u32) -> &mut Self
pub fn get_muted(&self) -> bool
pub fn get_mut_muted(&mut self) -> &mut bool
pub fn set_muted(&mut self, val: bool) -> &mut Self
pub fn get_today(&self) -> bool
pub fn get_mut_today(&mut self) -> &mut bool
pub fn set_today(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvCalendarDay
impl Clone for EuvCalendarDay
impl Copy for EuvCalendarDay
Source§impl Debug for EuvCalendarDay
impl Debug for EuvCalendarDay
Auto Trait Implementations§
impl Freeze for EuvCalendarDay
impl RefUnwindSafe for EuvCalendarDay
impl Send for EuvCalendarDay
impl Sync for EuvCalendarDay
impl Unpin for EuvCalendarDay
impl UnsafeUnpin for EuvCalendarDay
impl UnwindSafe for EuvCalendarDay
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