pub struct UnifiedDiff {
pub content: Vec<UnifiedDiffContent>,
}
Expand description
unified diff
Fields§
§content: Vec<UnifiedDiffContent>
Implementations§
Source§impl UnifiedDiff
impl UnifiedDiff
Sourcepub fn format(&self) -> FormattedUnifiedDiff
pub fn format(&self) -> FormattedUnifiedDiff
convert each string to one in unified format
Sourcepub fn split(&self) -> SplitUnifiedDiff
pub fn split(&self) -> SplitUnifiedDiff
split into old / new parts
Trait Implementations§
Source§impl Clone for UnifiedDiff
impl Clone for UnifiedDiff
Source§fn clone(&self) -> UnifiedDiff
fn clone(&self) -> UnifiedDiff
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 moreAuto Trait Implementations§
impl Freeze for UnifiedDiff
impl RefUnwindSafe for UnifiedDiff
impl Send for UnifiedDiff
impl Sync for UnifiedDiff
impl Unpin 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