Enum modalkit::prelude::RangeEndingType
source · 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 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 RangeEndingType
impl Debug for RangeEndingType
source§impl PartialEq for RangeEndingType
impl PartialEq for RangeEndingType
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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)