pub struct NoteBuilder<'config> { /* private fields */ }Expand description
Notedown AST builder
Implementations§
Source§impl<'config> NoteBuilder<'config>
impl<'config> NoteBuilder<'config>
Sourcepub fn new(config: &'config NotedownLanguage) -> Self
pub fn new(config: &'config NotedownLanguage) -> Self
Create a new builder with the given language configuration
Trait Implementations§
Source§impl<'config> Builder<NotedownLanguage> for NoteBuilder<'config>
impl<'config> Builder<NotedownLanguage> for NoteBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
_source: &S,
_edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<NotedownLanguage>,
) -> BuildOutput<NotedownLanguage>
fn build<'a, S: Source + ?Sized>( &self, _source: &S, _edits: &[TextEdit], _cache: &'a mut impl BuilderCache<NotedownLanguage>, ) -> BuildOutput<NotedownLanguage>
Builds the higher-level structure (typically an AST) from the source text. Read more
Auto Trait Implementations§
impl<'config> Freeze for NoteBuilder<'config>
impl<'config> RefUnwindSafe for NoteBuilder<'config>
impl<'config> Send for NoteBuilder<'config>
impl<'config> Sync for NoteBuilder<'config>
impl<'config> Unpin for NoteBuilder<'config>
impl<'config> UnsafeUnpin for NoteBuilder<'config>
impl<'config> UnwindSafe for NoteBuilder<'config>
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