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§
impl<'a> Copy for Attribute<'a>
impl<'a> Eq for Attribute<'a>
impl<'a> StructuralPartialEq for Attribute<'a>
Auto Trait Implementations§
impl<'a> Freeze for Attribute<'a>
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