Struct donet_core::parser::error::Diagnostic
source · pub(crate) struct Diagnostic {
span: Span,
stage: PipelineStage,
file_id: usize,
severity: Severity,
error: PipelineError,
}
Fields§
§span: Span
§stage: PipelineStage
§file_id: usize
§severity: Severity
§error: PipelineError
Implementations§
source§impl Diagnostic
impl Diagnostic
pub fn error( span: Span, pipeline: &mut PipelineData<'_>, err: impl Into<PipelineError>, ) -> Self
Trait Implementations§
source§impl From<Diagnostic> for Diagnostic<usize>
impl From<Diagnostic> for Diagnostic<usize>
Allows converting our Diagnostic type into a codespan Diagnostic type.
source§fn from(val: Diagnostic) -> Diagnostic<usize>
fn from(val: Diagnostic) -> Diagnostic<usize>
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Diagnostic
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin 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