pub enum LineEraseMode {
FromCursorToEnd,
FromCursorToStart,
All,
}Expand description
Erase part or all of the current line. Does not move the cursor.
Variants§
FromCursorToEnd
Erase from the cursor to the end of the line.
FromCursorToStart
Erase from the cursor to the start of the line.
All
Erase the entire line.
Trait Implementations§
Source§impl Clone for LineEraseMode
impl Clone for LineEraseMode
Source§fn clone(&self) -> LineEraseMode
fn clone(&self) -> LineEraseMode
Returns a duplicate 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 LineEraseMode
impl Debug for LineEraseMode
Source§impl Hash for LineEraseMode
impl Hash for LineEraseMode
Source§impl Ord for LineEraseMode
impl Ord for LineEraseMode
Source§fn cmp(&self, other: &LineEraseMode) -> Ordering
fn cmp(&self, other: &LineEraseMode) -> Ordering
1.21.0 · 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
Source§impl PartialEq for LineEraseMode
impl PartialEq for LineEraseMode
Source§impl PartialOrd for LineEraseMode
impl PartialOrd for LineEraseMode
impl Eq for LineEraseMode
impl StructuralPartialEq for LineEraseMode
Auto Trait Implementations§
impl Freeze for LineEraseMode
impl RefUnwindSafe for LineEraseMode
impl Send for LineEraseMode
impl Sync for LineEraseMode
impl Unpin for LineEraseMode
impl UnwindSafe for LineEraseMode
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