pub enum Expected {
Eof,
Char(char),
Tag(&'static str),
Number,
}
Expand description
Different kinds of things that can be expected at a given location
Variants§
Eof
Expected EoF (End of File)
Char(char)
Expected a character
Tag(&'static str)
Expected a tag
A tag is a particular string token (such as “upper”).
Number
Expected a number
Trait Implementations§
impl Copy for Expected
Auto Trait Implementations§
impl Freeze for Expected
impl RefUnwindSafe for Expected
impl Send for Expected
impl Sync for Expected
impl Unpin for Expected
impl UnwindSafe for Expected
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