pub enum Severity {
Error = 1,
Warning = 2,
}Expand description
The severity of a diagnostic.
This should be roughly equivalent to the severity of Cairo diagnostics.
The appropriate action for each diagnostic kind will be taken by Scarb.
Variants§
Error = 1
An error has occurred.
Emitting diagnostic with Severity::Error severity will fail the source code compilation.
Warning = 2
A warning suggestion will be shown to the user.
Emitting diagnostic with Severity::Warning severity does not stop the compilation.
Trait Implementations§
impl Copy for Severity
impl Eq for Severity
impl StructuralPartialEq for Severity
Auto Trait Implementations§
impl Freeze for Severity
impl RefUnwindSafe for Severity
impl Send for Severity
impl Sync for Severity
impl Unpin for Severity
impl UnwindSafe for Severity
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