pub struct HtmlBuilder { /* private fields */ }Expand description
A builder for HTML documents that coordinates parsing and AST construction.
Implementations§
Source§impl HtmlBuilder
impl HtmlBuilder
Sourcepub fn new(config: HtmlLanguage) -> Self
pub fn new(config: HtmlLanguage) -> Self
Creates a new HtmlBuilder with the specified language configuration.
Trait Implementations§
Source§impl Builder<HtmlLanguage> for HtmlBuilder
impl Builder<HtmlLanguage> for HtmlBuilder
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<HtmlLanguage>,
) -> BuildOutput<HtmlLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<HtmlLanguage>, ) -> BuildOutput<HtmlLanguage>
Builds the higher-level structure (typically an AST) from the source text. Read more
Source§impl Clone for HtmlBuilder
impl Clone for HtmlBuilder
Source§fn clone(&self) -> HtmlBuilder
fn clone(&self) -> HtmlBuilder
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 moreAuto Trait Implementations§
impl Freeze for HtmlBuilder
impl RefUnwindSafe for HtmlBuilder
impl Send for HtmlBuilder
impl Sync for HtmlBuilder
impl Unpin for HtmlBuilder
impl UnsafeUnpin for HtmlBuilder
impl UnwindSafe for HtmlBuilder
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