Struct rtlola_reporting::Diagnostic [−][src]
pub struct Diagnostic<'a> { /* fields omitted */ }
Expand description
A Diagnostic
is more flexible way to build and output errors and warnings.
Implementations
Creates a new warning with the message message
Creates a new error with the message message
Adds a code span to the diagnostic.
The label
is printed next to the code fragment the span refers to.
If primary
is set to true the span is treated as the primary code fragment.
Adds a code span to the diagnostic if the span is available.
The label
is printed next to the code fragment the span refers to.
If primary
is set to true the span is treated as the primary code fragment.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Diagnostic<'a>
impl<'a> !Send for Diagnostic<'a>
impl<'a> !Sync for Diagnostic<'a>
impl<'a> Unpin for Diagnostic<'a>
impl<'a> UnwindSafe for Diagnostic<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more