pub struct Mutation {
pub start: usize,
pub end: usize,
pub from: &'static str,
pub to: &'static str,
pub line: u32,
}Expand description
One mutation: byte range in the original source → replacement text.
Fields§
§start: usizeByte range in the original source to replace.
end: usize§from: &'static strWhat was there before.
to: &'static strWhat it becomes.
line: u321-based source line number (for reporting).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mutation
impl RefUnwindSafe for Mutation
impl Send for Mutation
impl Sync for Mutation
impl Unpin for Mutation
impl UnsafeUnpin for Mutation
impl UnwindSafe for Mutation
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