Enum reproto_core::Diagnostic
[−]
[src]
pub enum Diagnostic { Error(Span, String), Info(Span, String), Symbol { kind: SymbolKind, span: Span, name: RpName, }, }
A single diagnostic emitted by the compiler.
Variants
Error(Span, String)
A positional error.
Info(Span, String)
A positional information string.
Symbol
A symbol that was encountered, and its location.
Fields of Symbol
kind: SymbolKind | |
span: Span | |
name: RpName |
Trait Implementations
impl Debug for Diagnostic
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Diagnostic
[src]
fn clone(&self) -> Diagnostic
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more