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 strTrait 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 duplicate 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 for TagAttribute<'s>
impl<'s> PartialEq for TagAttribute<'s>
Source§impl<'s> PartialOrd for TagAttribute<'s>
impl<'s> PartialOrd for TagAttribute<'s>
impl<'s> Eq for TagAttribute<'s>
impl<'s> StructuralPartialEq for TagAttribute<'s>
Auto Trait Implementations§
impl<'s> Freeze for TagAttribute<'s>
impl<'s> RefUnwindSafe for TagAttribute<'s>
impl<'s> Send for TagAttribute<'s>
impl<'s> Sync for TagAttribute<'s>
impl<'s> Unpin for TagAttribute<'s>
impl<'s> UnwindSafe for TagAttribute<'s>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more