Enum gluon_parser::Error
[−]
pub enum Error { Token(TokenizeError), Layout(LayoutError), InvalidToken, UnexpectedToken(String, Vec<String>), UnexpectedEof(Vec<String>), ExtraToken(String), Infix(InfixError), }
Variants
Token(TokenizeError)
Layout(LayoutError)
InvalidToken
UnexpectedToken(String, Vec<String>)
UnexpectedEof(Vec<String>)
ExtraToken(String)
Infix(InfixError)
Trait Implementations
impl Debug for Error
[src]
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
This method tests for !=
.
impl Display for Error
impl Error for Error
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<TokenizeError> for Error
fn from(err: TokenizeError) -> Error
Performs the conversion.
impl From<LayoutError> for Error
fn from(err: LayoutError) -> Error
Performs the conversion.
impl From<InfixError> for Error
fn from(err: InfixError) -> Error
Performs the conversion.