pub enum ParseError {
ParseInt(ParseIntError),
WrongFunctionName,
WrongFieldName,
ExpectedToken(ExpectedTokenError),
UnexpectedInput(UnexpectedInputError),
TemplateIsEmpty,
InvalidArgumentTemplate(InvalidArgumentTemplate),
}Expand description
Template format parsing error.
Variants§
ParseInt(ParseIntError)
Parsing integer error.
WrongFunctionName
Function name contains invalid chars.
WrongFieldName
Field name contains invalid chars.
ExpectedToken(ExpectedTokenError)
Wrong input was passed when some token is expected.
UnexpectedInput(UnexpectedInputError)
Wrong input was passed.
TemplateIsEmpty
Template is empty. Nothing to format.
InvalidArgumentTemplate(InvalidArgumentTemplate)
Unable to parse argument passed into function.
Trait Implementations§
Source§impl Debug for SyntaxParseError
impl Debug for SyntaxParseError
Source§impl Display for SyntaxParseError
impl Display for SyntaxParseError
Source§impl Error for SyntaxParseError
impl Error for SyntaxParseError
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()
Source§impl From<ExpectedTokenError> for SyntaxParseError
impl From<ExpectedTokenError> for SyntaxParseError
Source§fn from(error: ExpectedTokenError) -> Self
fn from(error: ExpectedTokenError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for SyntaxParseError
impl From<ParseIntError> for SyntaxParseError
Source§fn from(error: ParseIntError) -> Self
fn from(error: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<SyntaxParseError> for BuildError
impl From<SyntaxParseError> for BuildError
Source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<UnexpectedInputError> for SyntaxParseError
impl From<UnexpectedInputError> for SyntaxParseError
Source§fn from(error: UnexpectedInputError) -> Self
fn from(error: UnexpectedInputError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SyntaxParseError
impl RefUnwindSafe for SyntaxParseError
impl Send for SyntaxParseError
impl Sync for SyntaxParseError
impl Unpin for SyntaxParseError
impl UnwindSafe for SyntaxParseError
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