pub struct D2Language;Expand description
Mark d2 as a source language: its errors are syntax errors, its warnings the constructs outside the v1 subset.
Trait Implementations§
Source§impl Clone for D2Language
impl Clone for D2Language
Source§impl Debug for D2Language
impl Debug for D2Language
impl Eq for D2Language
Source§impl PartialEq for D2Language
impl PartialEq for D2Language
Source§impl SourceLanguage for D2Language
impl SourceLanguage for D2Language
Source§const ERROR_CODE: &'static str = "svugy::d2::syntax"
const ERROR_CODE: &'static str = "svugy::d2::syntax"
Spell the stable diagnostic code of the language’s errors.
Source§type Warning = UnsupportedConstruct
type Warning = UnsupportedConstruct
Type the warnings the language raises beside its errors.
impl StructuralPartialEq for D2Language
Auto Trait Implementations§
impl Forget for D2Language
impl Freeze for D2Language
impl Move for D2Language
impl RefUnwindSafe for D2Language
impl Send for D2Language
impl Sync for D2Language
impl Unpin for D2Language
impl UnsafeUnpin for D2Language
impl UnwindSafe for D2Language
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.