Enum aftermath::BuildError
source · pub enum BuildError<'input> {
InvalidToken(InvalidToken<'input>),
MissingParenthesis,
MissingOperator,
MissingOperand,
UnkownError,
}
Expand description
Error returned by Expr::parse
Variants§
InvalidToken(InvalidToken<'input>)
An underlying token in the input is wrong
MissingParenthesis
At least one parenthesis is missing
MissingOperator
At least one operator is missing
MissingOperand
At least one operand is missing
UnkownError
An unknown error occured
Trait Implementations§
source§impl<'input> Clone for BuildError<'input>
impl<'input> Clone for BuildError<'input>
source§fn clone(&self) -> BuildError<'input>
fn clone(&self) -> BuildError<'input>
Returns a copy 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<'input> Debug for BuildError<'input>
impl<'input> Debug for BuildError<'input>
source§impl<'input> From<InvalidToken<'input>> for BuildError<'input>
impl<'input> From<InvalidToken<'input>> for BuildError<'input>
source§fn from(value: InvalidToken<'input>) -> Self
fn from(value: InvalidToken<'input>) -> Self
Converts to this type from the input type.
source§impl<'input> PartialEq<BuildError<'input>> for BuildError<'input>
impl<'input> PartialEq<BuildError<'input>> for BuildError<'input>
source§fn eq(&self, other: &BuildError<'input>) -> bool
fn eq(&self, other: &BuildError<'input>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.