Struct magnesium::TagAttribute[][src]

pub struct TagAttribute<'s> {
    pub key: &'s str,
    pub value: &'s str,
}

The output of a TagAttributeIterator.

Attributes within an XML tag are key-value pairs. Only Start and Empty tags have attributes.

Each key is expected to only appear once in a given tag. The order of the keys is not usually significant.

Fields

key: &'s strvalue: &'s str

Trait Implementations

impl<'s> Clone for TagAttribute<'s>[src]

impl<'s> Debug for TagAttribute<'s>[src]

impl<'s> Default for TagAttribute<'s>[src]

impl<'s> Eq for TagAttribute<'s>[src]

impl<'s> Hash for TagAttribute<'s>[src]

impl<'s> Ord for TagAttribute<'s>[src]

impl<'s> PartialEq<TagAttribute<'s>> for TagAttribute<'s>[src]

impl<'s> PartialOrd<TagAttribute<'s>> for TagAttribute<'s>[src]

impl<'s> StructuralEq for TagAttribute<'s>[src]

impl<'s> StructuralPartialEq for TagAttribute<'s>[src]

Auto Trait Implementations

impl<'s> Send for TagAttribute<'s>[src]

impl<'s> Sync for TagAttribute<'s>[src]

impl<'s> Unpin for TagAttribute<'s>[src]

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, 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.