pub enum CoarseMode {
Normal,
Insert,
Select,
SelectLine,
SelectBlock,
}Expand description
Discipline-agnostic coarse mode for app chrome (status badge, cursor
shape). Unlike VimMode — which names vim-specific states — CoarseMode
is a minimal projection: “are we inserting text, selecting, or idle?”
App chrome reads this instead of VimMode so it stays behind the engine’s
discipline seam (DisciplineState): the installed discipline (vim today)
maps its own modes onto these variants via DisciplineState::coarse_mode.
Variants§
Normal
Idle / command-ready (vim Normal).
Insert
Text is being inserted at the caret (vim Insert).
Select
A character-wise selection is active (vim Visual).
SelectLine
A line-wise selection is active (vim VisualLine).
SelectBlock
A block / column selection is active (vim VisualBlock).
Trait Implementations§
Source§impl Clone for CoarseMode
impl Clone for CoarseMode
Source§fn clone(&self) -> CoarseMode
fn clone(&self) -> CoarseMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CoarseMode
Source§impl Debug for CoarseMode
impl Debug for CoarseMode
Source§impl Default for CoarseMode
impl Default for CoarseMode
Source§fn default() -> CoarseMode
fn default() -> CoarseMode
Returns the “default value” for a type. Read more
impl Eq for CoarseMode
Source§impl PartialEq for CoarseMode
impl PartialEq for CoarseMode
impl StructuralPartialEq for CoarseMode
Auto Trait Implementations§
impl Freeze for CoarseMode
impl RefUnwindSafe for CoarseMode
impl Send for CoarseMode
impl Sync for CoarseMode
impl Unpin for CoarseMode
impl UnsafeUnpin for CoarseMode
impl UnwindSafe for CoarseMode
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