Struct terminal_menu::TerminalMenuStruct[][src]

pub struct TerminalMenuStruct {
    pub items: Vec<TerminalMenuItem>,
    // some fields omitted
}

Fields

items: Vec<TerminalMenuItem>

Implementations

Returns true if the menu is active (open).

Example
let is_active = menu.read().unwrap().is_active();

Returns the name of the selected menu item.

Example
let selected = mutable_menu_instance.selected_item();

Returns the index of the selected menu item.

Example
let selected = mutable_menu_instance.selected_item();

Set the selected item as an index of the items vec

Example
terminal_menu::mutable_instance(&menu).set_selected_item(5);

Returns the value of the specified selection item.

Example
let s_value = mutable_menu_instance.selection_value("My Selection");

Returns the value of the specified numeric item.

Example
let n_value = mutable_menu_instance.numeric_value("My Numeric");

Returns the specified submenu.

Example
let submenu = mutable_menu_instance.get_submenu("My Submenu");

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

Performs the conversion.

Performs the conversion.

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.