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

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: OwnedName

Attribute name.

value: String

Attribute value.

Methods

impl OwnedAttribute[src]

pub fn borrow(&self) -> Attribute[src]

Returns a borrowed Attribute out of this owned one.

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

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

Trait Implementations

impl Eq for OwnedAttribute[src]

impl Clone for OwnedAttribute[src]

impl PartialEq<OwnedAttribute> for OwnedAttribute[src]

impl Hash for OwnedAttribute[src]

impl Debug for OwnedAttribute[src]

impl Display for OwnedAttribute[src]

Auto Trait Implementations

impl Send for OwnedAttribute

impl Unpin for OwnedAttribute

impl Sync for OwnedAttribute

impl UnwindSafe for OwnedAttribute

impl RefUnwindSafe for OwnedAttribute

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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