Struct xml::attribute::Attribute [] [src]

pub struct Attribute<'a> {
    pub name: Name<'a>,
    pub value: &'a str,
}

A borrowed version of an XML attribute.

Consists of a borrowed qualified name and a borrowed string value.

Fields

Attribute name.

Attribute value.

Methods

impl<'a> Attribute<'a>
[src]

Creates an owned attribute out of this borrowed one.

Creates a borrowed attribute using the provided borrowed name and a borrowed string value.

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

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

This method tests for !=.

impl<'a> Hash for Attribute<'a>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

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

Formats the value using the given formatter.

impl<'a> Display for Attribute<'a>
[src]

Formats the value using the given formatter. Read more