pub struct CommandPaletteState {
pub commands: Vec<PaletteCommand>,
pub input: String,
pub cursor: usize,
pub open: bool,
/* private fields */
}Expand description
State for a command palette overlay.
Renders as a modal with a search input and filtered command list.
Fields§
§commands: Vec<PaletteCommand>§input: String§cursor: usize§open: boolImplementations§
Auto Trait Implementations§
impl Freeze for CommandPaletteState
impl RefUnwindSafe for CommandPaletteState
impl Send for CommandPaletteState
impl Sync for CommandPaletteState
impl Unpin for CommandPaletteState
impl UnsafeUnpin for CommandPaletteState
impl UnwindSafe for CommandPaletteState
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