pub enum LineRange {
FromStart {
first: u64,
last: u64,
},
FromStartOpen {
first: u64,
},
Suffix {
length: u64,
},
Insert {
before: u64,
},
}Expand description
Line range spec. All bounds are 1-based inclusive line semantics.
Variants§
FromStart
lines=first-last (both bounds present, inclusive)
Fields
FromStartOpen
lines=first- (no upper bound; from first to end)
Suffix
lines=-length (last N lines)
Insert
lines=before-before-1 (zero-width insert at before)
Implementations§
Trait Implementations§
impl Eq for LineRange
impl StructuralPartialEq for LineRange
Auto Trait Implementations§
impl Freeze for LineRange
impl RefUnwindSafe for LineRange
impl Send for LineRange
impl Sync for LineRange
impl Unpin for LineRange
impl UnsafeUnpin for LineRange
impl UnwindSafe for LineRange
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