pub enum TableError {
EofIsError,
EofNotSentinel {
eof: u16,
token_count: u32,
external_count: u32,
},
EofMissingFromIndex,
EofParityMismatch(u16),
}Expand description
Errors related to parse table validation
Variants§
EofIsError
The EOF symbol ID collides with the built-in ERROR symbol.
EofNotSentinel
EOF symbol ID is too low; it must be a sentinel beyond all tokens.
EofMissingFromIndex
The EOF symbol is not registered in the symbol-to-index mapping.
EofParityMismatch(u16)
ACTION table EOF column has mismatched accept/reduce entries.
Trait Implementations§
Source§impl Debug for TableError
impl Debug for TableError
Source§impl Display for TableError
impl Display for TableError
Source§impl Error for TableError
impl Error for TableError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for TableError
impl RefUnwindSafe for TableError
impl Send for TableError
impl Sync for TableError
impl Unpin for TableError
impl UnsafeUnpin for TableError
impl UnwindSafe for TableError
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