pub enum SyntaxError {
PrematureEndWhile(usize, usize),
UnclosedWhile(usize, usize),
}
Expand description
The syntax errors possible.
Variants§
PrematureEndWhile(usize, usize)
A closing square bracket was found at the contained line:index position, but there was no opening square bracket before it.
UnclosedWhile(usize, usize)
The last while loop opened, at the contained line:index position, has no closing bracket.
Trait Implementations§
Source§impl Debug for SyntaxError
impl Debug for SyntaxError
Source§impl PartialEq for SyntaxError
impl PartialEq for SyntaxError
impl StructuralPartialEq for SyntaxError
Auto Trait Implementations§
impl Freeze for SyntaxError
impl RefUnwindSafe for SyntaxError
impl Send for SyntaxError
impl Sync for SyntaxError
impl Unpin for SyntaxError
impl UnwindSafe for SyntaxError
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