pub struct Attribute<'a> {
pub name: Name<'a>,
pub value: &'a str,
}
Expand description
A borrowed version of an XML attribute.
Consists of a borrowed qualified name and a borrowed string value.
Fields§
§name: Name<'a>
Attribute name.
value: &'a str
Attribute value.
Implementations§
Trait Implementations§
source§impl<'a> PartialEq<Attribute<'a>> for Attribute<'a>
impl<'a> PartialEq<Attribute<'a>> for Attribute<'a>
impl<'a> Copy for Attribute<'a>
impl<'a> Eq for Attribute<'a>
impl<'a> StructuralEq for Attribute<'a>
impl<'a> StructuralPartialEq for Attribute<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Attribute<'a>
impl<'a> Send for Attribute<'a>
impl<'a> Sync for Attribute<'a>
impl<'a> Unpin for Attribute<'a>
impl<'a> UnwindSafe for Attribute<'a>
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