pub enum PromptKind {
Show 15 variants
NewFile,
OpenFile,
SaveAs,
SaveAsAndClose,
GoToLine,
GoToAddress,
RenameFile,
DeleteFile,
Watch,
BreakpointCondition,
SetRegister,
Search,
Replace,
ConfirmQuit,
ConfirmClose,
}Expand description
What a prompt is asking for.
Variants§
NewFile
A file to create in the project.
OpenFile
A file to open.
SaveAs
A name to save under.
SaveAsAndClose
A name to save under before closing the buffer.
GoToLine
A line number.
GoToAddress
An address expression.
RenameFile
The new name of the active file.
DeleteFile
Confirmation that the active file should be deleted.
Watch
An expression to watch.
BreakpointCondition
The selected breakpoint’s condition.
SetRegister
A register assignment.
Search
Text to search for.
Replace
Text to replace matches with.
ConfirmQuit
Confirmation before discarding unsaved changes.
ConfirmClose
Choice of saving, discarding, or cancelling before closing a buffer.
Implementations§
Source§impl PromptKind
impl PromptKind
Sourcepub const fn is_confirmation(self) -> bool
pub const fn is_confirmation(self) -> bool
Whether the prompt takes a single keypress rather than a line of text.
Sourcepub const fn completes_paths(self) -> bool
pub const fn completes_paths(self) -> bool
Whether Tab should complete the input against the filesystem.
Trait Implementations§
Source§impl Clone for PromptKind
impl Clone for PromptKind
impl Copy for PromptKind
Source§impl Debug for PromptKind
impl Debug for PromptKind
impl Eq for PromptKind
Source§impl PartialEq for PromptKind
impl PartialEq for PromptKind
impl StructuralPartialEq for PromptKind
Auto Trait Implementations§
impl Freeze for PromptKind
impl RefUnwindSafe for PromptKind
impl Send for PromptKind
impl Sync for PromptKind
impl Unpin for PromptKind
impl UnsafeUnpin for PromptKind
impl UnwindSafe for PromptKind
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more