Enum radicle_surf::diff::DiffContent
source · pub enum DiffContent {
Binary,
Plain {
hunks: Hunks<Modification>,
stats: FileStats,
eof: EofNewLine,
},
Empty,
}
Expand description
The set of changes for a given file.
Variants§
Binary
The file is a binary file and so no set of changes can be provided.
Plain
The set of changes, as Hunks
for a plaintext file.
Empty
Implementations§
Trait Implementations§
source§impl Clone for DiffContent
impl Clone for DiffContent
source§fn clone(&self) -> DiffContent
fn clone(&self) -> DiffContent
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 DiffContent
impl Debug for DiffContent
source§impl PartialEq for DiffContent
impl PartialEq for DiffContent
source§impl TryFrom<Patch<'_>> for DiffContent
impl TryFrom<Patch<'_>> for DiffContent
impl Eq for DiffContent
impl StructuralPartialEq for DiffContent
Auto Trait Implementations§
impl Freeze for DiffContent
impl RefUnwindSafe for DiffContent
impl Send for DiffContent
impl Sync for DiffContent
impl Unpin for DiffContent
impl UnwindSafe for DiffContent
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
)