Enum html_diff::Difference [] [src]

pub enum Difference {
    NodeType {
        elem: ElementInformation,
        opposite_elem: ElementInformation,
    },
    NodeName {
        elem: ElementInformation,
        opposite_elem: ElementInformation,
    },
    NodeAttributes {
        elem: ElementInformation,
        elem_attributes: HashMap<String, String>,
        opposite_elem: ElementInformation,
        opposite_elem_attributes: HashMap<String, String>,
    },
    NodeText {
        elem: ElementInformation,
        elem_text: String,
        opposite_elem: ElementInformation,
        opposite_elem_text: String,
    },
    NotPresent {
        elem: Option<ElementInformation>,
        opposite_elem: Option<ElementInformation>,
    },
}

Contains the kind of difference and some information.

Variants

Different node types at the same place (text vs data for example).

Fields of NodeType

Different node names (div vs ul for example).

Fields of NodeName

Different attributes for two nodes.

Fields of NodeAttributes

Different text content for two nodes.

Fields of NodeText

If an element isn't present in one of the two sides.

Fields of NotPresent

Methods

impl Difference
[src]

Trait Implementations

impl Debug for Difference
[src]

[src]

Formats the value using the given formatter.

impl Clone for Difference
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Difference
[src]

[src]

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

[src]

This method tests for !=.

impl ToString for Difference
[src]

[src]

Converts the given value to a String. Read more