pub struct ExpectedTokenError<Alphabet> {
pub cursor: usize,
pub token: Alphabet,
}Fields§
§cursor: usize§token: AlphabetTrait Implementations§
Source§impl<Alphabet: Debug> Debug for ExpectedTokenError<Alphabet>
impl<Alphabet: Debug> Debug for ExpectedTokenError<Alphabet>
Source§impl<Alphabet> Display for ExpectedTokenError<Alphabet>where
Alphabet: Debug,
impl<Alphabet> Display for ExpectedTokenError<Alphabet>where
Alphabet: Debug,
Source§impl<Alphabet> Error for ExpectedTokenError<Alphabet>
impl<Alphabet> Error for ExpectedTokenError<Alphabet>
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<Alphabet> Freeze for ExpectedTokenError<Alphabet>where
Alphabet: Freeze,
impl<Alphabet> RefUnwindSafe for ExpectedTokenError<Alphabet>where
Alphabet: RefUnwindSafe,
impl<Alphabet> Send for ExpectedTokenError<Alphabet>where
Alphabet: Send,
impl<Alphabet> Sync for ExpectedTokenError<Alphabet>where
Alphabet: Sync,
impl<Alphabet> Unpin for ExpectedTokenError<Alphabet>where
Alphabet: Unpin,
impl<Alphabet> UnwindSafe for ExpectedTokenError<Alphabet>where
Alphabet: UnwindSafe,
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