Enum radicle_surf::diff::Modification
source · pub enum Modification {
Addition(Addition),
Deletion(Deletion),
Context {
line: Line,
line_no_old: u32,
line_no_new: u32,
},
}
Expand description
Either the modification of a single Line
, or just contextual
information.
Variants§
Addition(Addition)
A line is an addition in a file.
Deletion(Deletion)
A line is a deletion in a file.
Context
A contextual line in a file, i.e. there were no changes to the line.
Implementations§
Trait Implementations§
source§impl Clone for Modification
impl Clone for Modification
source§fn clone(&self) -> Modification
fn clone(&self) -> Modification
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Modification
impl Debug for Modification
source§impl PartialEq for Modification
impl PartialEq for Modification
source§impl<'a> TryFrom<DiffLine<'a>> for Modification
impl<'a> TryFrom<DiffLine<'a>> for Modification
impl Eq for Modification
impl StructuralPartialEq for Modification
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)