pub struct Range {
pub start: usize,
pub end: usize,
pub shape: MotionShape,
}Expand description
A half-open byte range [start, end) plus its vim shape.
Fields§
§start: usize§end: usize§shape: MotionShapeImplementations§
Source§impl Range
impl Range
pub fn charwise(start: usize, end: usize) -> Self
pub fn linewise(start: usize, end: usize) -> Self
pub fn is_linewise(&self) -> bool
Sourcepub fn with_inclusive(self, inclusive: bool) -> Self
pub fn with_inclusive(self, inclusive: bool) -> Self
The resolver’s inclusive flag folds into the shape (0014).
pub fn inclusive(&self) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
impl Copy for Range
impl Eq for Range
impl StructuralPartialEq for Range
Auto Trait Implementations§
impl Freeze for Range
impl RefUnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnsafeUnpin for Range
impl UnwindSafe for Range
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