Enum input::StandardEvent
source · #[non_exhaustive]pub enum StandardEvent {
Show 17 variants
Exit,
Kill,
Undo,
Redo,
ScrollBottom,
ScrollDown,
ScrollJumpDown,
ScrollJumpUp,
ScrollLeft,
ScrollRight,
ScrollTop,
ScrollUp,
Help,
SearchStart,
SearchNext,
SearchPrevious,
SearchFinish,
}
Expand description
Represents an event that is not tied directly to a user input device.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Exit
The exit meta event.
Kill
The kill meta event.
Undo
The undo meta event.
Redo
The redo meta event.
ScrollBottom
The scroll bottom meta event.
ScrollDown
The scroll bottom meta event.
ScrollJumpDown
The scroll to bottom meta event.
ScrollJumpUp
The scroll jump down meta event.
ScrollLeft
The scroll jump up meta event.
ScrollRight
The scroll left meta event.
ScrollTop
The scroll right meta event.
ScrollUp
The scroll to top meta event.
Help
The help meta event.
SearchStart
Start a search meta event.
SearchNext
Next search result meta event.
SearchPrevious
Previous search result meta event.
SearchFinish
Finish search mode meta event.
Trait Implementations§
source§impl Clone for StandardEvent
impl Clone for StandardEvent
source§fn clone(&self) -> StandardEvent
fn clone(&self) -> StandardEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StandardEvent
impl Debug for StandardEvent
source§impl<CustomEvent: CustomEvent> From<StandardEvent> for Event<CustomEvent>
impl<CustomEvent: CustomEvent> From<StandardEvent> for Event<CustomEvent>
source§fn from(event: StandardEvent) -> Self
fn from(event: StandardEvent) -> Self
Converts to this type from the input type.
source§impl PartialEq<StandardEvent> for StandardEvent
impl PartialEq<StandardEvent> for StandardEvent
source§fn eq(&self, other: &StandardEvent) -> bool
fn eq(&self, other: &StandardEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StandardEvent> for StandardEvent
impl PartialOrd<StandardEvent> for StandardEvent
source§fn partial_cmp(&self, other: &StandardEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &StandardEvent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for StandardEvent
impl Eq for StandardEvent
impl StructuralEq for StandardEvent
impl StructuralPartialEq for StandardEvent
Auto Trait Implementations§
impl RefUnwindSafe for StandardEvent
impl Send for StandardEvent
impl Sync for StandardEvent
impl Unpin for StandardEvent
impl UnwindSafe for StandardEvent
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