pub struct CommandMenuProps {
pub completions: Vec<String>,
pub selected: Option<usize>,
}Fields§
§completions: Vec<String>The filtered list of matching command names (without the / prefix).
selected: Option<usize>Index of the currently highlighted entry (None ⇒ nothing selected).
Trait Implementations§
Source§impl Default for CommandMenuProps
impl Default for CommandMenuProps
Source§fn default() -> CommandMenuProps
fn default() -> CommandMenuProps
Returns the “default value” for a type. Read more
impl Props for CommandMenuProps
Auto Trait Implementations§
impl Freeze for CommandMenuProps
impl RefUnwindSafe for CommandMenuProps
impl Send for CommandMenuProps
impl Sync for CommandMenuProps
impl Unpin for CommandMenuProps
impl UnsafeUnpin for CommandMenuProps
impl UnwindSafe for CommandMenuProps
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