pub trait CompilationError:
Serialize
+ Send
+ Sync
+ Display
+ Debug
+ Clone
+ PartialEq
+ Eq
+ 'static {
// Required methods
fn is_warning(&self) -> bool;
fn is_error(&self) -> bool;
fn source_location(&self) -> Option<SourceLocation>;
fn severity(&self) -> Severity;
fn error_code(&self) -> Option<u64>;
}
Expand description
Error returned by compiler. Might also represent a warning or informational message.
Required Methods§
fn is_warning(&self) -> bool
fn is_error(&self) -> bool
fn source_location(&self) -> Option<SourceLocation>
fn severity(&self) -> Severity
fn error_code(&self) -> Option<u64>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.