Struct rtlola_reporting::Diagnostic [−][src]
pub struct Diagnostic { /* fields omitted */ }
Expand description
A Diagnostic
is more flexible way to build and output errors and warnings.
Implementations
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Creates a value from an iterator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnwindSafe for Diagnostic
Blanket Implementations
Mutably borrows from an owned value. Read more