pub struct D2Document {
pub statements: Vec<Statement>,
}Expand description
Hold the top-level statements of a d2 file that fall inside the v1 subset.
Fields§
§statements: Vec<Statement>Trait Implementations§
Source§impl Clone for D2Document
impl Clone for D2Document
Source§impl Debug for D2Document
impl Debug for D2Document
Source§impl Default for D2Document
impl Default for D2Document
Source§impl PartialEq for D2Document
impl PartialEq for D2Document
impl StructuralPartialEq for D2Document
Auto Trait Implementations§
impl Forget for D2Document
impl Freeze for D2Document
impl Move for D2Document
impl RefUnwindSafe for D2Document
impl Send for D2Document
impl Sync for D2Document
impl Unpin for D2Document
impl UnsafeUnpin for D2Document
impl UnwindSafe for D2Document
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.