Enum tera::ErrorKind [−][src]
pub enum ErrorKind {}Show variants
Msg(String), CircularExtend { tpl: String, inheritance_chain: Vec<String>, }, MissingParent { current: String, parent: String, }, TemplateNotFound(String), FilterNotFound(String), TestNotFound(String), InvalidMacroDefinition(String), FunctionNotFound(String), Json(Error), CallFunction(String), CallFilter(String), CallTest(String), Io(ErrorKind), Utf8Conversion { context: String, }, // some variants omitted
Expand description
The kind of an error (non-exhaustive)
Variants
Msg(String)
Expand description
Generic error
Expand description
A loop was found while looking up the inheritance chain
Show fields
Expand description
A template is extending a template that wasn’t found in the Tera instance
Show fields
TemplateNotFound(String)
Expand description
A template was missing (more generic version of MissingParent)
FilterNotFound(String)
Expand description
A filter wasn’t found
TestNotFound(String)
Expand description
A test wasn’t found
InvalidMacroDefinition(String)
Expand description
A macro was defined in the middle of a template
FunctionNotFound(String)
Expand description
A function wasn’t found
Json(Error)
Expand description
An error happened while serializing JSON
CallFunction(String)
Expand description
An error occured while executing a function.
CallFilter(String)
Expand description
An error occured while executing a filter.
CallTest(String)
Expand description
An error occured while executing a test.
Io(ErrorKind)
Expand description
An IO error occured
Expand description
UTF-8 conversion error
This should not occur unless invalid UTF8 chars are rendered
Show fields
Fields of Utf8Conversion
context: String
Expand description
The context that indicates where the error occurs in the rendering process
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,