Enum reedline::PromptEditMode
source · [−]pub enum PromptEditMode {
Default,
Emacs,
Vi(PromptViMode),
Custom(String),
}
Expand description
Modes that the prompt can be in
Variants
Default
The default mode
Emacs
Emacs normal mode
Vi(PromptViMode)
A vi-specific mode
Custom(String)
A custom mode
Trait Implementations
sourceimpl Clone for PromptEditMode
impl Clone for PromptEditMode
sourcefn clone(&self) -> PromptEditMode
fn clone(&self) -> PromptEditMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PromptEditMode
impl Debug for PromptEditMode
sourceimpl<'de> Deserialize<'de> for PromptEditMode
impl<'de> Deserialize<'de> for PromptEditMode
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for PromptEditMode
impl Display for PromptEditMode
sourceimpl IntoEnumIterator for PromptEditMode
impl IntoEnumIterator for PromptEditMode
sourceimpl Serialize for PromptEditMode
impl Serialize for PromptEditMode
Auto Trait Implementations
impl RefUnwindSafe for PromptEditMode
impl Send for PromptEditMode
impl Sync for PromptEditMode
impl Unpin for PromptEditMode
impl UnwindSafe for PromptEditMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more