pub enum Construct {
Show 21 variants
Variables,
Classes,
Board(&'static str),
Import,
Glob,
EdgeReference,
SpecialShape(String),
BlockString,
Null,
Array,
ReservedField(&'static str),
FieldForm(String),
DeclarationInEdgeMap,
UnmappedShape(String),
UnmappedDirection(String),
ArrowheadForm(EdgeOperator),
FieldOnEdge(&'static str),
FieldOnRoot(&'static str),
UnknownStyleKey(String),
ContainerBadge,
LineageEdge,
}Expand description
Name the d2 construct that fell outside the v1 subset.
Variants§
Variables
Classes
Board(&'static str)
Import
Glob
EdgeReference
SpecialShape(String)
BlockString
Null
Array
ReservedField(&'static str)
FieldForm(String)
DeclarationInEdgeMap
UnmappedShape(String)
UnmappedDirection(String)
ArrowheadForm(EdgeOperator)
FieldOnEdge(&'static str)
FieldOnRoot(&'static str)
UnknownStyleKey(String)
ContainerBadge
LineageEdge
Trait Implementations§
impl Eq for Construct
impl StructuralPartialEq for Construct
Auto Trait Implementations§
impl Forget for Construct
impl Freeze for Construct
impl Move for Construct
impl RefUnwindSafe for Construct
impl Send for Construct
impl Sync for Construct
impl Unpin for Construct
impl UnsafeUnpin for Construct
impl UnwindSafe for Construct
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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.