pub enum Expectation {
Tag(&'static str),
Char(char),
Eof,
Alpha,
Digit,
HexDigit,
AlphaNumeric,
Space,
Multispace,
Something,
}Expand description
What was expected when parsing
Variants§
Tag(&'static str)
Expected a specific tag
Char(char)
Expected a specific character
Eof
Expected end of input
Alpha
Expected alpha character
Digit
Expected digit
HexDigit
Expected hex digit
AlphaNumeric
Expected alphanumeric
Space
Expected space
Multispace
Expected multispace
Something
Expected something else
Trait Implementations§
Source§impl Clone for Expectation
impl Clone for Expectation
Source§fn clone(&self) -> Expectation
fn clone(&self) -> Expectation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Expectation
impl Debug for Expectation
Source§impl PartialEq for Expectation
impl PartialEq for Expectation
impl StructuralPartialEq for Expectation
Auto Trait Implementations§
impl Freeze for Expectation
impl RefUnwindSafe for Expectation
impl Send for Expectation
impl Sync for Expectation
impl Unpin for Expectation
impl UnwindSafe for Expectation
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