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

name

Attribute name.

value

Attribute value.

Methods

impl<'a> Attribute<'a>

fn to_owned(&self) -> OwnedAttribute

fn new(name: Name<'a>, value: &'a str) -> Attribute<'a>

Trait Implementations

impl<'a> Display for Attribute<'a>

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

Derived Implementations

impl<'a> Debug for Attribute<'a>

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

impl<'a> Hash for Attribute<'a>

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

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

impl<'a> PartialEq for Attribute<'a>

fn eq(&self, __arg_0: &Attribute<'a>) -> bool

fn ne(&self, __arg_0: &Attribute<'a>) -> bool

impl<'a> Eq for Attribute<'a>

impl<'a> Clone for Attribute<'a>

fn clone(&self) -> Attribute<'a>

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

impl<'a> Copy for Attribute<'a>