Struct requestty_ui::widgets::Select [−][src]
pub struct Select<L> {
pub list: L,
// some fields omitted
}Expand description
A widget to select a single item from a list.
The list must implement the List trait.
Fields
list: LThe underlying list
Implementations
Set the index of the element that is currently being hovered.
at can be any number (even beyond list.len()), but the caller is responsible for making
sure that it is a selectable element.
Consumes the Select returning the original list.
Returns a mutable reference to the currently hovered item.
Trait Implementations
Returns the starting location of the layout. It should not be relied upon for a sensible cursor position.
Handle a key input. It should return whether key was handled.
Render to a given backend. Read more
Auto Trait Implementations
impl<L> RefUnwindSafe for Select<L> where
L: RefUnwindSafe,
impl<L> UnwindSafe for Select<L> where
L: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more