#[non_exhaustive]pub enum EditorMode {
Normal,
Vim,
Other(String),
}Expand description
editorMode.
Docs: editorMode.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Normal
Standard key bindings in the prompt input.
Vim
Vim-style editing with NORMAL, INSERT, and VISUAL modes.
Other(String)
A value this crate doesn’t know, as written.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for EditorMode
impl AsRef<str> for EditorMode
Source§impl Clone for EditorMode
impl Clone for EditorMode
Source§impl Debug for EditorMode
impl Debug for EditorMode
Source§impl<'de> Deserialize<'de> for EditorMode
impl<'de> Deserialize<'de> for EditorMode
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for EditorMode
impl Display for EditorMode
impl Eq for EditorMode
Source§impl From<&str> for EditorMode
impl From<&str> for EditorMode
Source§impl From<String> for EditorMode
impl From<String> for EditorMode
Source§impl Hash for EditorMode
impl Hash for EditorMode
Source§impl Ord for EditorMode
impl Ord for EditorMode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EditorMode
impl PartialEq for EditorMode
Source§impl PartialOrd for EditorMode
impl PartialOrd for EditorMode
Source§impl Serialize for EditorMode
impl Serialize for EditorMode
impl StructuralPartialEq for EditorMode
Auto Trait Implementations§
impl Forget for EditorMode
impl Freeze for EditorMode
impl Move for EditorMode
impl RefUnwindSafe for EditorMode
impl Send for EditorMode
impl Sync for EditorMode
impl Unpin for EditorMode
impl UnsafeUnpin for EditorMode
impl UnwindSafe for EditorMode
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