pub struct AttributeEvent<'a> { /* private fields */ }Expand description
An event returned by the Attributes iterator that represents a single attribute on a start tag.
Implementations§
Source§impl<'a> AttributeEvent<'a>
impl<'a> AttributeEvent<'a>
Sourcepub fn quote(&self) -> AttributeQuote
pub fn quote(&self) -> AttributeQuote
Returns the quote character that this attribute’s value was wrapped in.
Sourcepub fn position_in(&self, reader: &Reader<'_>) -> Range<usize>
pub fn position_in(&self, reader: &Reader<'_>) -> Range<usize>
Sourcepub fn name_position_in(&self, reader: &Reader<'_>) -> Range<usize>
pub fn name_position_in(&self, reader: &Reader<'_>) -> Range<usize>
Trait Implementations§
Source§impl<'a> Clone for AttributeEvent<'a>
impl<'a> Clone for AttributeEvent<'a>
Source§fn clone(&self) -> AttributeEvent<'a>
fn clone(&self) -> AttributeEvent<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for AttributeEvent<'a>
impl<'a> Debug for AttributeEvent<'a>
impl<'a> Copy for AttributeEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for AttributeEvent<'a>
impl<'a> RefUnwindSafe for AttributeEvent<'a>
impl<'a> Send for AttributeEvent<'a>
impl<'a> Sync for AttributeEvent<'a>
impl<'a> Unpin for AttributeEvent<'a>
impl<'a> UnwindSafe for AttributeEvent<'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