#[non_exhaustive]pub enum ErrorKind {
Io,
UndefinedVariable,
Syntax,
MissingParams,
TypeMismatch,
UnknownFilter,
IncludeNotFound,
DeclarationsMutated,
ExtraParams,
Panic,
}Expand description
A stable, Copy categorisation of a TemplateError.
This mirrors the TemplateError variants but drops their payloads, giving
a discriminant that is cheap to pass around and stable across releases. It is
primarily intended for FFI and language bindings that expose a typed-error
hierarchy of their own.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Io
I/O error while loading a template file. See TemplateError::Io.
UndefinedVariable
A referenced variable was not found. See TemplateError::UndefinedVariable.
Syntax
Syntax error in the template. See TemplateError::Syntax.
MissingParams
Missing required parameters. See TemplateError::MissingParams.
TypeMismatch
Type mismatch. See TemplateError::TypeMismatch.
UnknownFilter
Unknown filter name. See TemplateError::UnknownFilter.
IncludeNotFound
Include file not found. See TemplateError::IncludeNotFound.
DeclarationsMutated
Declarations mutated at runtime. See TemplateError::DeclarationsMutated.
ExtraParams
Extra undeclared parameters. See TemplateError::ExtraParams.
Panic
Explicit {% panic(...) %}. See TemplateError::Panic.
Implementations§
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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.