pub enum Code {
Lexical,
Syntax,
Expression,
Label,
Resource,
Internal,
Unsupported,
}Expand description
Stable native PlusCal diagnostic categories.
Variants§
Lexical
Invalid lexical token, string or comment.
Syntax
Missing or unexpected grammar token.
Expression
Missing expression or unmatched delimiter.
Label
Illegal source label.
Resource
Parser resource bound reached.
Internal
A parser worker failed unexpectedly; report as an implementation bug.
Unsupported
Explicitly unimplemented mode.
Implementations§
Trait Implementations§
impl Copy for Code
Source§impl<'de> Deserialize<'de> for Code
impl<'de> Deserialize<'de> for Code
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Forget for Code
impl Freeze for Code
impl Move for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnsafeUnpin for Code
impl UnwindSafe for Code
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