pub struct UnifiedDiff {
pub content: Vec<UnifiedDiffContent>,
}Expand description
Unified diff ready for further formatting or splitting.
Fields§
§content: Vec<UnifiedDiffContent>Implementations§
Source§impl UnifiedDiff
impl UnifiedDiff
Sourcepub fn format(&self) -> FormattedUnifiedDiff
pub fn format(&self) -> FormattedUnifiedDiff
Applies ---/+++/-/+/@@ prefix markers to all fields.
Sourcepub fn split(&self) -> SplitUnifiedDiff
pub fn split(&self) -> SplitUnifiedDiff
Splits into separate old and new content views.
Trait Implementations§
Source§impl Clone for UnifiedDiff
impl Clone for UnifiedDiff
Source§fn clone(&self) -> UnifiedDiff
fn clone(&self) -> UnifiedDiff
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UnifiedDiff
impl RefUnwindSafe for UnifiedDiff
impl Send for UnifiedDiff
impl Sync for UnifiedDiff
impl Unpin for UnifiedDiff
impl UnsafeUnpin for UnifiedDiff
impl UnwindSafe for UnifiedDiff
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