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

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

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

Derived Implementations

impl Debug for OwnedAttribute

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

impl Hash for OwnedAttribute

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

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

impl PartialEq for OwnedAttribute

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

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

impl Eq for OwnedAttribute

impl Clone for OwnedAttribute

fn clone(&self) -> OwnedAttribute

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