[][src]Enum diffy::Line

pub enum Line<'a> {
    Context(&'a str),
    Delete(&'a str),
    Insert(&'a str),
}

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 str)

A line providing context in the diff which is present in both the old and new file

Delete(&'a str)

A line deleted from the old file

Insert(&'a str)

A line inserted to the new file

Trait Implementations

impl<'a> Clone for Line<'a>[src]

impl<'a> Copy for Line<'a>[src]

impl<'a> Debug for Line<'a>[src]

impl<'a> Eq for Line<'a>[src]

impl<'a> PartialEq<Line<'a>> for Line<'a>[src]

impl<'a> StructuralEq for Line<'a>[src]

impl<'a> StructuralPartialEq for Line<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Line<'a>

impl<'a> Send for Line<'a>

impl<'a> Sync for Line<'a>

impl<'a> Unpin for Line<'a>

impl<'a> UnwindSafe for Line<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.