pub struct UnsupportedConstruct {
pub construct: Construct,
pub span: SourceSpan,
}Expand description
Ignore a construct d2 accepts but the v1 subset or the model does not hold.
Fields§
§construct: Construct§span: SourceSpanTrait Implementations§
Source§impl Clone for UnsupportedConstruct
impl Clone for UnsupportedConstruct
Source§impl Debug for UnsupportedConstruct
impl Debug for UnsupportedConstruct
Source§impl Diagnostic for UnsupportedConstruct
impl Diagnostic for UnsupportedConstruct
Source§fn code(&self) -> Option<Box<dyn Display + '_>>
fn code(&self) -> Option<Box<dyn Display + '_>>
Unique diagnostic code that can be used to look up more information
about this
Diagnostic. Ideally also globally unique, and documented
in the toplevel crate’s documentation for easy searching. Rust path
format (foo::bar::baz) is recommended, but more classic codes like
E0123 or enums will work just fine.Source§fn severity(&self) -> Option<Severity>
fn severity(&self) -> Option<Severity>
Diagnostic severity. This may be used by
ReportHandlers to change the display format
of this diagnostic. Read moreSource§fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
Labels to apply to this
Diagnostic’s Diagnostic::source_codeSource§fn help<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
fn help<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
Additional help text related to this
Diagnostic. Do you have any
advice for the poor soul who’s just run into this issue?Source§fn url<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
fn url<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
URL to visit for a more detailed explanation/help about this
Diagnostic.Source§fn source_code(&self) -> Option<&dyn SourceCode>
fn source_code(&self) -> Option<&dyn SourceCode>
Source code to apply this
Diagnostic’s Diagnostic::labels to.Additional related
Diagnostics.Source§fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
The cause of the error.
Source§impl Display for UnsupportedConstruct
impl Display for UnsupportedConstruct
impl Eq for UnsupportedConstruct
Source§impl Error for UnsupportedConstruct
impl Error for UnsupportedConstruct
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for UnsupportedConstruct
impl PartialEq for UnsupportedConstruct
impl StructuralPartialEq for UnsupportedConstruct
Auto Trait Implementations§
impl Forget for UnsupportedConstruct
impl Freeze for UnsupportedConstruct
impl Move for UnsupportedConstruct
impl RefUnwindSafe for UnsupportedConstruct
impl Send for UnsupportedConstruct
impl Sync for UnsupportedConstruct
impl Unpin for UnsupportedConstruct
impl UnsafeUnpin for UnsupportedConstruct
impl UnwindSafe for UnsupportedConstruct
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.Source§impl<D> ErrorSeverity for Dwhere
D: Diagnostic + ?Sized,
impl<D> ErrorSeverity for Dwhere
D: Diagnostic + ?Sized,
Source§impl<D> LabelledDiagnostic for Dwhere
D: Diagnostic + ?Sized,
impl<D> LabelledDiagnostic for Dwhere
D: Diagnostic + ?Sized,
Source§fn first_label_offset(&self) -> Option<usize>
fn first_label_offset(&self) -> Option<usize>
Return where the diagnostic’s first label starts, or
None when it has no label.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.