pub enum Address {
Line(usize),
Last,
Regex(String),
Step {
first: usize,
step: usize,
},
}Variants§
Line(usize)
A specific line number (1-indexed)
Last
The last line of input
Regex(String)
Lines matching a regex pattern
Step
GNU extension: first~step (every step-th line starting at first)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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