pub enum Mode {
Normal,
Visual(VisualState),
Command,
Present,
Help,
}Expand description
An editing mode the Session can be in.
Some of these modes are inspired by vi.
Variants§
Normal
Allows the user to paint pixels.
Visual(VisualState)
Allows pixels to be selected, copied and manipulated visually.
Command
Allows commands to be run.
Present
Used to present work.
Help
Activated with the :help command.
Trait Implementations§
impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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