pub struct HtmlParser { /* private fields */ }Expand description
Parser for the HTML language.
This parser transforms a stream of tokens into a green tree of HTML syntax nodes.
Implementations§
Source§impl HtmlParser
impl HtmlParser
Sourcepub fn new(config: HtmlLanguage) -> Self
pub fn new(config: HtmlLanguage) -> Self
Creates a new HtmlParser with the given configuration.
Trait Implementations§
Source§impl Parser<HtmlLanguage> for HtmlParser
impl Parser<HtmlLanguage> for HtmlParser
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<HtmlLanguage>,
) -> ParseOutput<'a, HtmlLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<HtmlLanguage>, ) -> ParseOutput<'a, HtmlLanguage>
The core parsing entry point for converting tokens into a syntax tree. Read more
Auto Trait Implementations§
impl Freeze for HtmlParser
impl RefUnwindSafe for HtmlParser
impl Send for HtmlParser
impl Sync for HtmlParser
impl Unpin for HtmlParser
impl UnsafeUnpin for HtmlParser
impl UnwindSafe for HtmlParser
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