pub struct Attribute<'a> {
pub name: Name<'a>,
pub value: &'a str,
pub span: Span,
pub specified: bool,
}Expand description
An attribute of an element.
Fields§
§name: Name<'a>§value: &'a strThe value, normalized as XML says: references replaced, and each
tab, line end and newline a space (and, for an attribute the
internal subset declares as anything but CDATA, spaces collapsed).
span: SpanFrom the name to the closing quote; for a default from the DTD, the element’s start tag.
specified: boolFalse for a default the DTD supplied.
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> Forget for Attribute<'a>
impl<'a> Freeze for Attribute<'a>
impl<'a> Move 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> UnsafeUnpin for Attribute<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for Attribute<'a>where
&'a str: UnwindSafe,
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