Struct html5tokenizer::trace::AttributeTrace
source · pub struct AttributeTrace { /* private fields */ }
Expand description
Provides byte offsets and the AttrValueSyntax
for an attribute that was present in the source.
Implementations§
source§impl AttributeTrace
impl AttributeTrace
sourcepub fn value_span(&self) -> Option<Range<usize>>
pub fn value_span(&self) -> Option<Range<usize>>
For explicitly defined values returns the span of the attribute value.
Returns None
for attributes using the empty attribute syntax (e.g. disabled
in <input disabled>
).
sourcepub fn value_syntax(&self) -> Option<AttrValueSyntax>
pub fn value_syntax(&self) -> Option<AttrValueSyntax>
Returns the attribute value syntax in case the value is explicitly defined.
Returns None
for attributes using the empty attribute syntax (e.g. disabled
in <input disabled>
).
Trait Implementations§
source§impl Debug for AttributeTrace
impl Debug for AttributeTrace
source§impl PartialEq for AttributeTrace
impl PartialEq for AttributeTrace
source§fn eq(&self, other: &AttributeTrace) -> bool
fn eq(&self, other: &AttributeTrace) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AttributeTrace
impl StructuralEq for AttributeTrace
impl StructuralPartialEq for AttributeTrace
Auto Trait Implementations§
impl RefUnwindSafe for AttributeTrace
impl Send for AttributeTrace
impl Sync for AttributeTrace
impl Unpin for AttributeTrace
impl UnwindSafe for AttributeTrace
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