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

source§

fn clone(&self) -> StandardEvent

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StandardEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<CustomEvent: CustomEvent> From<StandardEvent> for Event<CustomEvent>

source§

fn from(event: StandardEvent) -> Self

Converts to this type from the input type.
source§

impl PartialEq<StandardEvent> for StandardEvent

source§

fn eq(&self, other: &StandardEvent) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<StandardEvent> for StandardEvent

source§

fn partial_cmp(&self, other: &StandardEvent) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for StandardEvent

source§

impl Eq for StandardEvent

source§

impl StructuralEq for StandardEvent

source§

impl StructuralPartialEq for StandardEvent

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.