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