pub struct Delta { /* private fields */ }Expand description
Represents a single set of changes
Implementations
sourceimpl 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 StructuralPartialEq for Delta
Auto Trait Implementations
impl RefUnwindSafe for Delta
impl Send for Delta
impl Sync for Delta
impl Unpin for Delta
impl UnwindSafe for Delta
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more