Struct xml::attribute::OwnedAttribute [] [src]

pub struct OwnedAttribute {
    pub name: OwnedName,
    pub value: String,
}

An owned version of an XML attribute.

Consists of an owned qualified name and an owned string value.

Fields

name

Attribute name.

value

Attribute value.

Methods

impl OwnedAttribute
[src]

fn borrow(&self) -> Attribute

Returns a borrowed Attribute out of this owned one.

fn new<S: Into<String>>(name: OwnedName, value: S) -> OwnedAttribute

Creates a new owned attribute using the provided owned name and an owned string value.

Trait Implementations

impl Display for OwnedAttribute
[src]

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

Formats the value using the given formatter.

Derived Implementations

impl Debug for OwnedAttribute
[src]

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

Formats the value using the given formatter.

impl Hash for OwnedAttribute
[src]

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl PartialEq for OwnedAttribute
[src]

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

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

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

This method tests for !=.

impl Eq for OwnedAttribute
[src]

impl Clone for OwnedAttribute
[src]

fn clone(&self) -> OwnedAttribute

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more