Struct add_ed::Substitution
source · pub struct Substitution {
pub pattern: String,
pub substitute: String,
pub global: bool,
pub p: bool,
pub n: bool,
pub l: bool,
}
Expand description
A ready parsed ‘s’ invocation, including command and printing flags
Fields§
§pattern: String
Regex pattern to match against
substitute: String
Substitution template to replace it with
global: bool
Set true to apply to all occurences (instead of only the first)
p: bool
Flag to print after execution
n: bool
Flag to print with line numbers after execution
l: bool
Flag to print with literal escapes after execution
Auto Trait Implementations§
impl RefUnwindSafe for Substitution
impl Send for Substitution
impl Sync for Substitution
impl Unpin for Substitution
impl UnwindSafe for Substitution
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