[−][src]Struct terminal_menu::TerminalMenuStruct
Methods
impl TerminalMenuStruct[src]
pub fn is_active(&self) -> bool[src]
Returns true if the menu is active (open).
Example
let is_active = menu.read().unwrap().is_active();
pub fn selected_item(&self) -> &str[src]
Returns the name of the selected menu item.
Example
let selected = menu.read().unwrap().selected_item();
pub fn selection_value(&self, name: &str) -> Option<&str>[src]
Returns the value of the specified selection item.
Example
let s_value = menu.read().unwrap().selection_value("My Selection");
pub fn numeric_value(&self, name: &str) -> Option<f64>[src]
Returns the value of the specified numeric item.
Example
let n_value = menu.read().unwrap().numeric_value("My Numeric");
Auto Trait Implementations
impl RefUnwindSafe for TerminalMenuStruct
impl Send for TerminalMenuStruct
impl Sync for TerminalMenuStruct
impl Unpin for TerminalMenuStruct
impl UnwindSafe for TerminalMenuStruct
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,