#[non_exhaustive]pub enum ErrorKind {
Show 20 variants
NonPrimitive,
NonKey,
InvalidOperation,
SyntaxError,
TemplateNotFound,
TooManyArguments,
MissingArgument,
UnknownFilter,
UnknownTest,
UnknownFunction,
UnknownMethod,
BadEscape,
UndefinedError,
BadSerialization,
CannotDeserialize,
BadInclude,
EvalBlock,
CannotUnpack,
WriteFailure,
UnknownBlock,
}
Expand description
An enum describing the error kind.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NonPrimitive
A non primitive value was encountered where one was expected.
NonKey
A value is not valid for a key in a map.
InvalidOperation
An invalid operation was attempted.
SyntaxError
The template has a syntax error
TemplateNotFound
A template was not found.
TooManyArguments
Too many arguments were passed to a function.
MissingArgument
A expected argument was missing
UnknownFilter
A filter is unknown
UnknownTest
A test is unknown
UnknownFunction
A function is unknown
UnknownMethod
Un unknown method was called
BadEscape
A bad escape sequence in a string was encountered.
UndefinedError
An operation on an undefined value was attempted.
BadSerialization
Not able to serialize this value.
CannotDeserialize
Not able to deserialize this value.
BadInclude
An error happened in an include.
EvalBlock
An error happened in a super block.
CannotUnpack
Unable to unpack a value.
WriteFailure
Failed writing output.
UnknownBlock
An unknown block was called
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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