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§
source§impl Clone for PromptEditMode
impl Clone for PromptEditMode
source§fn clone(&self) -> PromptEditMode
fn clone(&self) -> PromptEditMode
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 PromptEditMode
impl Debug for PromptEditMode
source§impl<'de> Deserialize<'de> for PromptEditMode
impl<'de> Deserialize<'de> for PromptEditMode
source§fn 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
source§impl Display for PromptEditMode
impl Display for PromptEditMode
source§impl IntoEnumIterator for PromptEditMode
impl IntoEnumIterator for PromptEditMode
Auto Trait Implementations§
impl Freeze for PromptEditMode
impl RefUnwindSafe for PromptEditMode
impl Send for PromptEditMode
impl Sync for PromptEditMode
impl Unpin for PromptEditMode
impl UnwindSafe for PromptEditMode
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