Enum makeup::LineEraseMode
source · 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 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 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§fn eq(&self, other: &LineEraseMode) -> bool
fn eq(&self, other: &LineEraseMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LineEraseMode
impl PartialOrd for LineEraseMode
source§fn partial_cmp(&self, other: &LineEraseMode) -> Option<Ordering>
fn partial_cmp(&self, other: &LineEraseMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for LineEraseMode
impl StructuralEq for LineEraseMode
impl StructuralPartialEq for LineEraseMode
Auto Trait Implementations§
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