pub struct ModeSwitch<'h> {
pub old: ModeParts<'h>,
pub new: ModeParts<'h>,
}Expand description
An event representing a Mode switch, is the argument for the
ModeSwitched hook.
Fields§
§old: ModeParts<'h>The name of the previous Mode.
new: ModeParts<'h>The name of the current Mode.
Auto Trait Implementations§
impl<'h> Freeze for ModeSwitch<'h>
impl<'h> !RefUnwindSafe for ModeSwitch<'h>
impl<'h> !Send for ModeSwitch<'h>
impl<'h> !Sync for ModeSwitch<'h>
impl<'h> Unpin for ModeSwitch<'h>
impl<'h> UnsafeUnpin for ModeSwitch<'h>
impl<'h> !UnwindSafe for ModeSwitch<'h>
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