pub struct KeySelected {
pub key: char,
pub label: String,
}Expand description
Returned by select_key: the character pressed and the option’s label.
Fields§
§key: charThe character the user pressed (matches one of the option keys).
label: StringHuman-readable label of the chosen option.
Trait Implementations§
Source§impl Clone for KeySelected
impl Clone for KeySelected
Source§fn clone(&self) -> KeySelected
fn clone(&self) -> KeySelected
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KeySelected
impl RefUnwindSafe for KeySelected
impl Send for KeySelected
impl Sync for KeySelected
impl Unpin for KeySelected
impl UnsafeUnpin for KeySelected
impl UnwindSafe for KeySelected
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more