pub enum TokenProblem {
Stray {
at: usize,
},
Unknown {
token: String,
},
KindMismatch {
token: String,
},
}Expand description
What was wrong with a token in LocOS text.
Variants§
Stray
A \u{27E6} or \u{27E7} that is not part of a well-formed token. Left in the text.
Unknown
A well-formed token whose number is not in the map. Left in the text.
KindMismatch
A token whose kind does not fit the map (a closing token for a standalone code, an x token for a pair).
Left in the text.
Trait Implementations§
Source§impl Clone for TokenProblem
impl Clone for TokenProblem
Source§impl Debug for TokenProblem
impl Debug for TokenProblem
impl Eq for TokenProblem
Source§impl PartialEq for TokenProblem
impl PartialEq for TokenProblem
impl StructuralPartialEq for TokenProblem
Auto Trait Implementations§
impl Forget for TokenProblem
impl Freeze for TokenProblem
impl Move for TokenProblem
impl RefUnwindSafe for TokenProblem
impl Send for TokenProblem
impl Sync for TokenProblem
impl Unpin for TokenProblem
impl UnsafeUnpin for TokenProblem
impl UnwindSafe for TokenProblem
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