pub enum ViewMode {
Normal,
Blame,
}Expand description
A read-only view layered over the real input VimMode. Unlike a vim
mode (which decides how keystrokes are interpreted), a ViewMode only
changes what the buffer presents — input is still interpreted as Normal.
Blame is the git-blame overlay: the editor is read-only and the host
renders per-commit framing. It is only meaningful while the input mode is
Normal; any transition to Insert/Visual/etc. drops it back to Normal
(see Editor::is_blame). New read-only overlays (diff, conflict, …)
become additional variants here without touching VimMode.
Variants§
Trait Implementations§
impl Copy for ViewMode
impl Eq for ViewMode
impl StructuralPartialEq for ViewMode
Auto Trait Implementations§
impl Freeze for ViewMode
impl RefUnwindSafe for ViewMode
impl Send for ViewMode
impl Sync for ViewMode
impl Unpin for ViewMode
impl UnsafeUnpin for ViewMode
impl UnwindSafe for ViewMode
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