pub struct Delta { /* private fields */ }
Expand description
Represents a single set of changes
Implementations§
Source§impl Delta
impl Delta
Sourcepub fn new(
header: &str,
old_lines_start: u32,
new_lines_start: u32,
old_number_lines: u32,
new_number_lines: u32,
) -> Self
pub fn new( header: &str, old_lines_start: u32, new_lines_start: u32, old_number_lines: u32, new_number_lines: u32, ) -> Self
Create a new Delta
.
Sourcepub const fn old_lines_start(&self) -> u32
pub const fn old_lines_start(&self) -> u32
Get the old lines start.
Sourcepub const fn old_number_lines(&self) -> u32
pub const fn old_number_lines(&self) -> u32
Get the old number of lines
Sourcepub const fn new_lines_start(&self) -> u32
pub const fn new_lines_start(&self) -> u32
Get the new lines start.
Sourcepub const fn new_number_lines(&self) -> u32
pub const fn new_number_lines(&self) -> u32
Get the new number of lines.
Trait Implementations§
impl Eq for Delta
impl StructuralPartialEq for Delta
Auto Trait Implementations§
impl Freeze for Delta
impl RefUnwindSafe for Delta
impl Send for Delta
impl Sync for Delta
impl Unpin for Delta
impl UnwindSafe for Delta
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