pub struct D2Builder<'config> { /* private fields */ }Expand description
AST builder for the D2 language.
Implementations§
Trait Implementations§
Source§impl<'config> Builder<D2Language> for D2Builder<'config>
impl<'config> Builder<D2Language> for D2Builder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<D2Language>,
) -> BuildOutput<D2Language>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<D2Language>, ) -> BuildOutput<D2Language>
Builds the D2 AST from the green tree.
impl<'config> Copy for D2Builder<'config>
Auto Trait Implementations§
impl<'config> Freeze for D2Builder<'config>
impl<'config> RefUnwindSafe for D2Builder<'config>
impl<'config> Send for D2Builder<'config>
impl<'config> Sync for D2Builder<'config>
impl<'config> Unpin for D2Builder<'config>
impl<'config> UnsafeUnpin for D2Builder<'config>
impl<'config> UnwindSafe for D2Builder<'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