#[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§
source§impl PartialEq for ErrorKind
impl PartialEq for ErrorKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)