pub enum Action<'a> {
CREATE(&'a str, Vec<&'a str>),
REMOVE(&'a str),
INSERT(&'a str, Range, Vec<&'a str>),
}
Expand description
Represents an atomic action which can be applied to a source file, such as inserting or replacing lines within the file.
Variants§
Implementations§
Trait Implementations§
impl<'a> StructuralPartialEq for Action<'a>
Auto Trait Implementations§
impl<'a> Freeze for Action<'a>
impl<'a> RefUnwindSafe for Action<'a>
impl<'a> Send for Action<'a>
impl<'a> Sync for Action<'a>
impl<'a> Unpin for Action<'a>
impl<'a> UnwindSafe for Action<'a>
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