pub struct Parser<'a> { /* private fields */ }Expand description
The main HTML parser
Users of this library are not supposed to directly construct this struct.
Instead, users must call tl::parse() and use the returned VDom.
Implementations§
Source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
Sourcepub fn resolve_node_id(&self, id: InnerNodeHandle) -> Option<&Node<'a>>
pub fn resolve_node_id(&self, id: InnerNodeHandle) -> Option<&Node<'a>>
Resolves an internal Node ID obtained from a NodeHandle to a Node
Sourcepub fn resolve_node_id_mut(
&mut self,
id: InnerNodeHandle,
) -> Option<&mut Node<'a>>
pub fn resolve_node_id_mut( &mut self, id: InnerNodeHandle, ) -> Option<&mut Node<'a>>
Resolves an internal Node ID obtained from a NodeHandle to a Node
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Parser<'a>
impl<'a> RefUnwindSafe for Parser<'a>
impl<'a> !Send for Parser<'a>
impl<'a> !Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> UnwindSafe for Parser<'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