[−][src]Struct mininip::errors::error_kinds::ExpectedToken
A parsing error happening when an arbitrary token is expected but not found
Methods
impl ExpectedToken
[src]
pub fn new(line: String, index: usize, tokens: String) -> ExpectedToken
[src]
Creates a new ExpectedToken
error
Parameters
line
: the line where the error occured. Should be complete
index
: the index where the token is expected
tokens
: the possible tokens. There is no rule to format it, you just should be aware this will be printed directly to the end user
Panics
Panics if index
is too big
Trait Implementations
impl Debug for ExpectedToken
[src]
impl Display for ExpectedToken
[src]
impl Error for ExpectedToken
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<ExpectedToken> for Error
[src]
fn from(src: ExpectedToken) -> Error
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExpectedToken
impl Send for ExpectedToken
impl Sync for ExpectedToken
impl Unpin for ExpectedToken
impl UnwindSafe for ExpectedToken
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,