Struct inquire::list_option::ListOption [−][src]
pub struct ListOption<T> {
pub index: usize,
pub value: T,
}
Expand description
Represents a selection made by the user when prompted to select one or several options among those presented.
Fields
index: usize
Index of the selected option relative to the original (full) list passed to the prompt.
value: T
Value of the selected option.
Implementations
Converts from &ListOption<T>
to ListOption<&T>
.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for ListOption<T> where
T: RefUnwindSafe,
impl<T> Send for ListOption<T> where
T: Send,
impl<T> Sync for ListOption<T> where
T: Sync,
impl<T> Unpin for ListOption<T> where
T: Unpin,
impl<T> UnwindSafe for ListOption<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more