Struct magnesium::TagAttribute
source · pub struct TagAttribute<'s> {
pub key: &'s str,
pub value: &'s str,
}
Expand description
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 str
§value: &'s str
Trait Implementations§
source§impl<'s> Clone for TagAttribute<'s>
impl<'s> Clone for TagAttribute<'s>
source§fn clone(&self) -> TagAttribute<'s>
fn clone(&self) -> TagAttribute<'s>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'s> Debug for TagAttribute<'s>
impl<'s> Debug for TagAttribute<'s>
source§impl<'s> Default for TagAttribute<'s>
impl<'s> Default for TagAttribute<'s>
source§fn default() -> TagAttribute<'s>
fn default() -> TagAttribute<'s>
Returns the “default value” for a type. Read more
source§impl<'s> Hash for TagAttribute<'s>
impl<'s> Hash for TagAttribute<'s>
source§impl<'s> Ord for TagAttribute<'s>
impl<'s> Ord for TagAttribute<'s>
source§fn cmp(&self, other: &TagAttribute<'s>) -> Ordering
fn cmp(&self, other: &TagAttribute<'s>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'s> PartialEq<TagAttribute<'s>> for TagAttribute<'s>
impl<'s> PartialEq<TagAttribute<'s>> for TagAttribute<'s>
source§fn eq(&self, other: &TagAttribute<'s>) -> bool
fn eq(&self, other: &TagAttribute<'s>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialOrd<TagAttribute<'s>> for TagAttribute<'s>
impl<'s> PartialOrd<TagAttribute<'s>> for TagAttribute<'s>
source§fn partial_cmp(&self, other: &TagAttribute<'s>) -> Option<Ordering>
fn partial_cmp(&self, other: &TagAttribute<'s>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more