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

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: Name<'a>

Attribute name.

value: &'a str

Attribute value.

Methods

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

pub fn to_owned(&self) -> OwnedAttribute[src]

Creates an owned attribute out of this borrowed one.

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

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

Trait Implementations

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

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

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

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

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

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Attribute<'a>

impl<'a> Send for Attribute<'a>

impl<'a> Sync for Attribute<'a>

impl<'a> Unpin for Attribute<'a>

impl<'a> UnwindSafe for Attribute<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.