Enum text_terminal::InsertMode
source · pub enum InsertMode {
Insert,
Overwrite,
}
Expand description
Whether text characters printed to the terminal will be inserted before other characters or will replace/overwrite existing characters.
Variants§
Insert
Characters will be inserted at the current cursor, preserving all existing characters by shifting them to the right.
Overwrite
Characters will be overwritten in place. Sometimes called “replace mode”.
Trait Implementations§
source§impl Clone for InsertMode
impl Clone for InsertMode
source§fn clone(&self) -> InsertMode
fn clone(&self) -> InsertMode
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 InsertMode
impl Debug for InsertMode
source§impl PartialEq<InsertMode> for InsertMode
impl PartialEq<InsertMode> for InsertMode
source§fn eq(&self, other: &InsertMode) -> bool
fn eq(&self, other: &InsertMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for InsertMode
impl Eq for InsertMode
impl StructuralEq for InsertMode
impl StructuralPartialEq for InsertMode
Auto Trait Implementations§
impl RefUnwindSafe for InsertMode
impl Send for InsertMode
impl Sync for InsertMode
impl Unpin for InsertMode
impl UnwindSafe for InsertMode
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