[][src]Struct magnesium::TagAttribute

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

An attribute within a Start or Empty tag's data.

Tag attributes are key-value pairs. Each key should only appear once in a given tag. The attribute order shouldn't be significant, but that doesn't mean that all the attributes always appear in a specific order.

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> PartialEq<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>

impl<'s> Sync for TagAttribute<'s>

impl<'s> Unpin for TagAttribute<'s>

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.