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
impl Eq for AttributeOwned
impl StructuralPartialEq for AttributeOwned
Auto Trait Implementations§
impl Freeze for AttributeOwned
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