pub enum Op {
Block {
find: Vec<String>,
replace: Vec<String>,
},
Line {
re: Regex,
literal: bool,
replace: String,
},
}Expand description
A compiled edit operation.
Variants§
Block
Line-anchored literal block find/replace (empty replace deletes).
Line
Single-line find/replace, as the argv form does it.
Implementations§
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnsafeUnpin for Op
impl UnwindSafe for Op
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