Struct patchkit::patch::UnifiedPatch
source · pub struct UnifiedPatch {
pub orig_name: Vec<u8>,
pub orig_ts: Option<Vec<u8>>,
pub mod_name: Vec<u8>,
pub mod_ts: Option<Vec<u8>>,
pub hunks: Vec<Hunk>,
}Expand description
A unified diff style patch
Fields§
§orig_name: Vec<u8>Name of the original file
orig_ts: Option<Vec<u8>>Timestamp for the original file
mod_name: Vec<u8>Name of the modified file
mod_ts: Option<Vec<u8>>Timestamp for the modified file
hunks: Vec<Hunk>List of hunks
Implementations§
Trait Implementations§
source§impl Clone for UnifiedPatch
impl Clone for UnifiedPatch
source§fn clone(&self) -> UnifiedPatch
fn clone(&self) -> UnifiedPatch
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 UnifiedPatch
impl Debug for UnifiedPatch
source§impl PartialEq for UnifiedPatch
impl PartialEq for UnifiedPatch
source§fn eq(&self, other: &UnifiedPatch) -> bool
fn eq(&self, other: &UnifiedPatch) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Patch for UnifiedPatch
impl Patch for UnifiedPatch
impl Eq for UnifiedPatch
impl StructuralPartialEq for UnifiedPatch
Auto Trait Implementations§
impl Freeze for UnifiedPatch
impl RefUnwindSafe for UnifiedPatch
impl Send for UnifiedPatch
impl Sync for UnifiedPatch
impl Unpin for UnifiedPatch
impl UnwindSafe for UnifiedPatch
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)