pub enum Nudge {
Up,
Down,
Left,
Right,
}Expand description
Which way something just went, so the host can give the widget’s island a nudge that way.
It says what happened, not how to move: the host picks the motion. A value going up or down (a volume, a brightness) bumps the island’s top or bottom edge out at the widget’s item; moving to the next or previous thing (a workspace, a track) pushes the whole island left or right, and it springs back into place.
Variants§
Trait Implementations§
impl Copy for Nudge
impl Eq for Nudge
impl StructuralPartialEq for Nudge
Auto Trait Implementations§
impl Freeze for Nudge
impl RefUnwindSafe for Nudge
impl Send for Nudge
impl Sync for Nudge
impl Unpin for Nudge
impl UnsafeUnpin for Nudge
impl UnwindSafe for Nudge
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