pub struct Modification {
pub before: String,
pub after: String,
pub replacements: Vec<Replacement>,
}Expand description
Represents the overall result of modifying a file.
Fields§
§before: StringOriginal file content before any replacements.
after: StringFile content after applying all replacements.
replacements: Vec<Replacement>Detailed list of individual replacements performed.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Modification
impl RefUnwindSafe for Modification
impl Send for Modification
impl Sync for Modification
impl Unpin for Modification
impl UnwindSafe for Modification
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