Enum difference::Difference [] [src]

pub enum Difference {
    Same(String),
    Add(String),
    Rem(String),
}

Defines the contents of a changeset Changesets will be delivered in order of appearance in the original string Sequences of the same kind will be grouped into one Difference

Variants

Same(String)

Sequences that are the same

Add(String)

Sequences that are an addition (don't appear in the first string)

Rem(String)

Sequences that are a removal (don't appear in the second string)

Trait Implementations

impl Debug for Difference
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl PartialEq for Difference
[src]

fn eq(&self, __arg_0: &Difference) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Difference) -> bool

This method tests for !=.