pub struct Diagnostic {
pub code: DiagnosticCode,
pub span: Span,
pub subject: Option<String>,
}Fields§
§code: DiagnosticCode§span: Span§subject: Option<String>The name the diagnostic is about, where it has one: the declaration a
reserved or duplicate name refused, the repeated prop or record key
(children when a tag both sets that prop and has children), the tag
left unclosed or wrongly closed, the prop a reply may not carry, the
state or handle that needs a literal, the tag past the reply’s tag
limit, and the tag nested too deep. Expression nesting, parse-work,
size and count limits name nothing.
Trait Implementations§
Source§impl Clone for Diagnostic
impl Clone for Diagnostic
Source§impl Debug for Diagnostic
impl Debug for Diagnostic
impl Eq for Diagnostic
Source§impl PartialEq for Diagnostic
impl PartialEq for Diagnostic
impl StructuralPartialEq for Diagnostic
Auto Trait Implementations§
impl Freeze for Diagnostic
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnsafeUnpin for Diagnostic
impl UnwindSafe for Diagnostic
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