[−][src]Enum diffy::Line
A line in either the old file, new file, or both.
A Line
contains the terminating newline character \n
unless it is the final
line in the file and the file does not end with a newline character.
Variants
Context(&'a T)
A line providing context in the diff which is present in both the old and new file
Delete(&'a T)
A line deleted from the old file
Insert(&'a T)
A line inserted to the new file
Trait Implementations
impl<'_, T: ?Sized> Clone for Line<'_, T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'_, T: ?Sized> Copy for Line<'_, T>
[src]
impl<'a, T: Debug + ?Sized> Debug for Line<'a, T>
[src]
impl<'a, T: Eq + ?Sized> Eq for Line<'a, T>
[src]
impl<'a, T: PartialEq + ?Sized> PartialEq<Line<'a, T>> for Line<'a, T>
[src]
impl<'a, T: ?Sized> StructuralEq for Line<'a, T>
[src]
impl<'a, T: ?Sized> StructuralPartialEq for Line<'a, T>
[src]
Auto Trait Implementations
impl<'a, T: ?Sized> RefUnwindSafe for Line<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T: ?Sized> Send for Line<'a, T> where
T: Sync,
T: Sync,
impl<'a, T: ?Sized> Sync for Line<'a, T> where
T: Sync,
T: Sync,
impl<'a, T: ?Sized> Unpin for Line<'a, T>
impl<'a, T: ?Sized> UnwindSafe for Line<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,