pub enum CompilerErrorOrDiagnostic {
Diagnostic(CompilerDiagnostic),
ErrorDetail(CompilerErrorDetail),
}Expand description
Either a new-style diagnostic or legacy error detail
Variants§
Diagnostic(CompilerDiagnostic)
ErrorDetail(CompilerErrorDetail)
Implementations§
Source§impl CompilerErrorOrDiagnostic
impl CompilerErrorOrDiagnostic
pub fn severity(&self) -> ErrorSeverity
pub fn logged_severity(&self) -> ErrorSeverity
Trait Implementations§
Source§impl Clone for CompilerErrorOrDiagnostic
impl Clone for CompilerErrorOrDiagnostic
Source§fn clone(&self) -> CompilerErrorOrDiagnostic
fn clone(&self) -> CompilerErrorOrDiagnostic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompilerErrorOrDiagnostic
impl RefUnwindSafe for CompilerErrorOrDiagnostic
impl Send for CompilerErrorOrDiagnostic
impl Sync for CompilerErrorOrDiagnostic
impl Unpin for CompilerErrorOrDiagnostic
impl UnsafeUnpin for CompilerErrorOrDiagnostic
impl UnwindSafe for CompilerErrorOrDiagnostic
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