pub struct TagStart<'a> { /* private fields */ }
Expand description
The start tag of a tagged element.
The <xyz foo="bar">
in <xyz foo="bar">Hello</xyz>
Implementations§
Source§impl<'a> TagStart<'a>
impl<'a> TagStart<'a>
Sourcepub fn with_attributes<Attrs>(self, attrs: Attrs) -> Selfwhere
Attrs: IntoIterator<Item = Attribute<'a>>,
pub fn with_attributes<Attrs>(self, attrs: Attrs) -> Selfwhere
Attrs: IntoIterator<Item = Attribute<'a>>,
Returns Self
with the specified attributes.
Sourcepub fn name(&self) -> Result<&str, TagStartError>
pub fn name(&self) -> Result<&str, TagStartError>
Sourcepub fn name_bytes(&self) -> &[u8] ⓘ
pub fn name_bytes(&self) -> &[u8] ⓘ
Returns the name as bytes.
Sourcepub fn attributes(&'a self) -> AttributeIter<'a> ⓘ
pub fn attributes(&'a self) -> AttributeIter<'a> ⓘ
Returns the tag attributes.
Sourcepub fn get_attribute(
&self,
attr_name: &str,
) -> Result<Option<Attribute<'_>>, TagStartError>
pub fn get_attribute( &self, attr_name: &str, ) -> Result<Option<Attribute<'_>>, TagStartError>
Trait Implementations§
impl<'a> Eq for TagStart<'a>
impl<'a> StructuralPartialEq for TagStart<'a>
Auto Trait Implementations§
impl<'a> Freeze for TagStart<'a>
impl<'a> RefUnwindSafe for TagStart<'a>
impl<'a> Send for TagStart<'a>
impl<'a> Sync for TagStart<'a>
impl<'a> Unpin for TagStart<'a>
impl<'a> UnwindSafe for TagStart<'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