Enum modalkit::actions::PromptAction
source · pub enum PromptAction {
Abort(bool),
Submit,
Recall(MoveDir1D, Count, bool),
}
Expand description
Prompt actions
Variants§
Abort(bool)
Abort command entry.
bool indicates whether this requires the prompt to be empty. (For example, how <C-D>
behaves in shells.)
Submit
Submit the currently entered text.
Recall(MoveDir1D, Count, bool)
Move backwards and forwards through previous entries.
If bool is true
, then this should only move through entries that share an initially
typed prefix.
Trait Implementations§
source§impl Clone for PromptAction
impl Clone for PromptAction
source§fn clone(&self) -> PromptAction
fn clone(&self) -> PromptAction
Returns a copy of the value. Read more
1.0.0 · 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 PromptAction
impl Debug for PromptAction
source§impl<I: ApplicationInfo> From<PromptAction> for Action<I>
impl<I: ApplicationInfo> From<PromptAction> for Action<I>
source§fn from(act: PromptAction) -> Self
fn from(act: PromptAction) -> Self
Converts to this type from the input type.
source§impl PartialEq for PromptAction
impl PartialEq for PromptAction
impl Eq for PromptAction
impl StructuralPartialEq for PromptAction
Auto Trait Implementations§
impl Freeze for PromptAction
impl RefUnwindSafe for PromptAction
impl Send for PromptAction
impl Sync for PromptAction
impl Unpin for PromptAction
impl UnwindSafe for PromptAction
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)