pub struct Attr<'a> {
pub qname: &'a str,
pub local: &'a str,
pub ns: Cow<'a, str>,
pub value: Cow<'a, str>,
}Expand description
one attribute of a start tag
Fields§
§qname: &'a strthe name as written (with its prefix)
local: &'a strthe name without prefix (for a declaration: the prefix it binds, “” for xmlns)
ns: Cow<'a, str>the namespace URI (“” for an unprefixed attribute; NS_XMLNS for a declaration)
value: Cow<'a, str>the value with references replaced and white space normalised
Trait Implementations§
impl<'a> Eq for Attr<'a>
impl<'a> StructuralPartialEq for Attr<'a>
Auto Trait Implementations§
impl<'a> Forget for Attr<'a>
impl<'a> Freeze for Attr<'a>
impl<'a> Move for Attr<'a>
impl<'a> RefUnwindSafe for Attr<'a>where
String: RefUnwindSafe,
impl<'a> Send for Attr<'a>
impl<'a> Sync for Attr<'a>
impl<'a> Unpin for Attr<'a>
impl<'a> UnsafeUnpin for Attr<'a>
impl<'a> UnwindSafe for Attr<'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