pub struct ChoicesView {
pub lines: Vec<String>,
pub focused: usize,
pub slot: usize,
}Expand description
The choices a slot offers.
Fields§
§lines: Vec<String>The choices, top to bottom.
focused: usizeThe one the cursor is on.
slot: usizeThe slot they belong to (on the focused row).
Trait Implementations§
Source§impl Clone for ChoicesView
impl Clone for ChoicesView
Source§fn clone(&self) -> ChoicesView
fn clone(&self) -> ChoicesView
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 moreSource§impl Debug for ChoicesView
impl Debug for ChoicesView
impl Eq for ChoicesView
Source§impl PartialEq for ChoicesView
impl PartialEq for ChoicesView
impl StructuralPartialEq for ChoicesView
Auto Trait Implementations§
impl Freeze for ChoicesView
impl RefUnwindSafe for ChoicesView
impl Send for ChoicesView
impl Sync for ChoicesView
impl Unpin for ChoicesView
impl UnsafeUnpin for ChoicesView
impl UnwindSafe for ChoicesView
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