pub enum RangeEndingType {
Absolute(Count),
All,
Current,
Last,
Mark(Specifier<Mark>),
Search(MoveDir1D),
SubPatSearch(MoveDir1D),
Unspecified,
}Expand description
Methods for determining the start and end of a RangeSpec.
Variants§
Absolute(Count)
A specific line number.
All
All lines.
Current
The current line.
Last
The last line.
Mark(Specifier<Mark>)
The position of a given Mark.
Search(MoveDir1D)
The line matching a search using the last value of CommandType::Search.
SubPatSearch(MoveDir1D)
Perform a search using the last substitution pattern.
Unspecified
No line was specified.
Trait Implementations§
Source§impl Clone for RangeEndingType
impl Clone for RangeEndingType
Source§fn clone(&self) -> RangeEndingType
fn clone(&self) -> RangeEndingType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RangeEndingType
impl Debug for RangeEndingType
Source§impl PartialEq for RangeEndingType
impl PartialEq for RangeEndingType
Source§fn eq(&self, other: &RangeEndingType) -> bool
fn eq(&self, other: &RangeEndingType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RangeEndingType
impl StructuralPartialEq for RangeEndingType
Auto Trait Implementations§
impl Freeze for RangeEndingType
impl RefUnwindSafe for RangeEndingType
impl Send for RangeEndingType
impl Sync for RangeEndingType
impl Unpin for RangeEndingType
impl UnsafeUnpin for RangeEndingType
impl UnwindSafe for RangeEndingType
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