Struct lol_html::html_content::StartTag
source · pub struct StartTag<'i> { /* private fields */ }
Implementations§
source§impl<'i> StartTag<'i>
impl<'i> StartTag<'i>
pub fn encoding(&self) -> &'static Encoding
pub fn name(&self) -> String
pub fn set_name(&mut self, name: Bytes<'static>)
pub fn namespace_uri(&self) -> &'static str
pub fn attributes(&self) -> &[Attribute<'i>]
pub fn set_attribute( &mut self, name: &str, value: &str ) -> Result<(), AttributeNameError>
pub fn remove_attribute(&mut self, name: &str)
pub fn self_closing(&self) -> bool
pub fn before(&mut self, content: &str, content_type: ContentType)
pub fn after(&mut self, content: &str, content_type: ContentType)
pub fn replace(&mut self, content: &str, content_type: ContentType)
Trait Implementations§
Auto Trait Implementations§
impl<'i> !RefUnwindSafe for StartTag<'i>
impl<'i> !Send for StartTag<'i>
impl<'i> !Sync for StartTag<'i>
impl<'i> Unpin for StartTag<'i>
impl<'i> !UnwindSafe for StartTag<'i>
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