pub struct MultiMonth<'a>(pub &'a Focus, pub u32);Expand description
Multi-month event-handling.
The parameter gives the shift of the calendar in months, if the newly selected date is not visible with the current settings.
This also needs the Focus, as it changes the focused month if necessary.
Tuple Fields§
§0: &'a Focus§1: u32Trait Implementations§
Source§impl HandleEvent<Event, MultiMonth<'_>, CalOutcome> for &mut [MonthState]
impl HandleEvent<Event, MultiMonth<'_>, CalOutcome> for &mut [MonthState]
Source§fn handle(&mut self, event: &Event, arg: MultiMonth<'_>) -> CalOutcome
fn handle(&mut self, event: &Event, arg: MultiMonth<'_>) -> CalOutcome
Handle an event. Read more
Auto Trait Implementations§
impl<'a> Freeze for MultiMonth<'a>
impl<'a> !RefUnwindSafe for MultiMonth<'a>
impl<'a> !Send for MultiMonth<'a>
impl<'a> !Sync for MultiMonth<'a>
impl<'a> Unpin for MultiMonth<'a>
impl<'a> !UnwindSafe for MultiMonth<'a>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more