Struct html5tokenizer::token::AttributeOwned
source · pub struct AttributeOwned {
pub name: String,
pub value: String,
pub trace_idx: Option<AttributeTraceIdx>,
}
Expand description
An owned HTML attribute.
Fields§
§name: String
The attribute name. Uppercase ASCII characters (A-Z) have been converted to lowercase.
value: String
The attribute value. Character references have been resolved.
trace_idx: Option<AttributeTraceIdx>
The index of the corresponding AttributeTrace
in the
attribute_traces
field of StartTagTrace
, in case this attribute
was present in the source and the Emitter
has tracked this.
Trait Implementations§
source§impl Debug for AttributeOwned
impl Debug for AttributeOwned
source§impl PartialEq for AttributeOwned
impl PartialEq for AttributeOwned
source§fn eq(&self, other: &AttributeOwned) -> bool
fn eq(&self, other: &AttributeOwned) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AttributeOwned
impl StructuralEq for AttributeOwned
impl StructuralPartialEq for AttributeOwned
Auto Trait Implementations§
impl RefUnwindSafe for AttributeOwned
impl Send for AttributeOwned
impl Sync for AttributeOwned
impl Unpin for AttributeOwned
impl UnwindSafe for AttributeOwned
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