pub enum Change<'a> {
Added {
offset: usize,
content: LineContent<'a>,
line_number: u32,
},
Removed {
offset: usize,
section_type: SectionType,
line_number: u32,
},
Modified {
offset: usize,
old_content: LineContent<'a>,
new_content: LineContent<'a>,
line_number: u32,
},
SectionAdded {
section: Section<'a>,
index: usize,
},
SectionRemoved {
section_type: SectionType,
index: usize,
},
}Expand description
Represents a change in the script
Variants§
Added
A line was added
Fields
§
content: LineContent<'a>The content that was added
Removed
A line was removed
Fields
§
section_type: SectionTypeThe section type that contained the removed line
Modified
A line was modified
SectionAdded
A section was added
SectionRemoved
A section was removed
Fields
§
section_type: SectionTypeThe section type that was removed
Trait Implementations§
impl<'a> Eq for Change<'a>
impl<'a> StructuralPartialEq for Change<'a>
Auto Trait Implementations§
impl<'a> Freeze for Change<'a>
impl<'a> RefUnwindSafe for Change<'a>
impl<'a> Send for Change<'a>
impl<'a> Sync for Change<'a>
impl<'a> Unpin for Change<'a>
impl<'a> UnwindSafe for Change<'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