pub enum MenuEvent {
    Activate(bool),
    Deactivate,
    Edit(bool),
    NextElement,
    PreviousElement,
    MoveUp,
    MoveDown,
    MoveLeft,
    MoveRight,
    NextPage,
    PreviousPage,
}
Expand description

Defines all possible events that could happen with a menu.

Variants

Activate(bool)

Activation event for the menu. When the bool is true it means that the values have already being updated. This is true when the option quick_completions is true

Deactivate

Deactivation event

Edit(bool)

Line buffer edit event. When the bool is true it means that the values have already being updated. This is true when the option quick_completions is true

NextElement

Selecting next element in the menu

PreviousElement

Selecting previous element in the menu

MoveUp

Moving up in the menu

MoveDown

Moving down in the menu

MoveLeft

Moving left in the menu

MoveRight

Moving right in the menu

NextPage

Move to next page

PreviousPage

Move to previous page

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.