pub enum ParseSeverity {
Error,
Warning,
}Expand description
A parse diagnostic’s severity — whether it blocks compilation.
This crate has no brink-ir dependency (peer-crate rule, lib.rs’s
doc comment), so this stays a small local enum rather than reusing
brink_ir::Severity — consumers (brink-db’s lower_native_file) map
it onto the appropriate DiagnosticCode (E037 for Error, a
dedicated Warning-severity code for Warning) at the seam where the two
diagnostic vocabularies meet.
Variants§
Error
Malformed source — blocks compilation.
Warning
Advisory only — surfaced to the user but never blocks compilation
(issue #1263: <- outside a choice point can be literal dialogue,
so a hard error would be wrong).
Trait Implementations§
Source§impl Clone for ParseSeverity
impl Clone for ParseSeverity
Source§fn clone(&self) -> ParseSeverity
fn clone(&self) -> ParseSeverity
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 moreimpl Copy for ParseSeverity
Source§impl Debug for ParseSeverity
impl Debug for ParseSeverity
impl Eq for ParseSeverity
Source§impl PartialEq for ParseSeverity
impl PartialEq for ParseSeverity
impl StructuralPartialEq for ParseSeverity
Auto Trait Implementations§
impl Freeze for ParseSeverity
impl RefUnwindSafe for ParseSeverity
impl Send for ParseSeverity
impl Sync for ParseSeverity
impl Unpin for ParseSeverity
impl UnsafeUnpin for ParseSeverity
impl UnwindSafe for ParseSeverity
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