pub struct ListMenu { /* private fields */ }
Expand description

Struct to store the menu style Context menu definition

Implementations

Menu builder with new name

Menu builder with new value for text style

Menu builder with new value for text style

Menu builder with new value for description style

Menu builder with new page size

Menu builder with new only buffer difference

Menu builder with menu marker

source

pub fn with_max_entry_lines(self, max_lines: u16) -> Self

Menu builder with max entry lines

Trait Implementations

Returns the “default value” for a type. Read more

Menu indicator

Deactivates context menu

There is no use for quick complete for the menu

The menu should not try to auto complete to avoid comparing all registered values

Selects what type of event happened with the menu

Collecting the value from the completer to be shown in the menu

Gets values from cached values that will be displayed in the menu

The buffer gets cleared with the actual value

Calculates the real required lines for the menu considering how many lines wrap the terminal and if an entry is larger than the remaining lines

Creates the menu representation as a string which will be painted by the painter

Minimum rows that should be displayed by the menu

Menu name

The working details of a menu are values that could change based on the menu conditions before it being printed, such as the number or size of columns, etc. In this function should be defined how the menu event is treated since it is called just before painting the menu 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 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.