pub enum CompilerDiagnosticDetail {
Error {
loc: Option<SourceLocation>,
message: Option<String>,
identifier_name: Option<String>,
},
Hint {
message: String,
},
}Expand description
Detail for a diagnostic
Variants§
Trait Implementations§
Source§impl Clone for CompilerDiagnosticDetail
impl Clone for CompilerDiagnosticDetail
Source§fn clone(&self) -> CompilerDiagnosticDetail
fn clone(&self) -> CompilerDiagnosticDetail
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 moreSource§impl Debug for CompilerDiagnosticDetail
impl Debug for CompilerDiagnosticDetail
Auto Trait Implementations§
impl Freeze for CompilerDiagnosticDetail
impl RefUnwindSafe for CompilerDiagnosticDetail
impl Send for CompilerDiagnosticDetail
impl Sync for CompilerDiagnosticDetail
impl Unpin for CompilerDiagnosticDetail
impl UnsafeUnpin for CompilerDiagnosticDetail
impl UnwindSafe for CompilerDiagnosticDetail
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