Enum srtemplate::SrTemplateError
source · pub enum SrTemplateError {
BadSyntax(String),
VariableNotFound(String),
FunctionNotImplemented(String),
Function(FunctionError),
}Expand description
Re-exports the SrTemplateError type for convenient use.
Collection of errors in the library
Variants§
BadSyntax(String)
This error appears when the syntax of the template to be rendered is wrong.
VariableNotFound(String)
This error appears when the variable to be rendered does not exist.
FunctionNotImplemented(String)
This error appears when the function to be rendered does not exist.
Function(FunctionError)
This error appears when the function to be rendered has suffered from an internal error.
Trait Implementations§
source§impl Debug for SrTemplateError
impl Debug for SrTemplateError
source§impl Display for SrTemplateError
impl Display for SrTemplateError
source§impl Error for SrTemplateError
impl Error for SrTemplateError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<FunctionError> for SrTemplateError
impl From<FunctionError> for SrTemplateError
source§fn from(source: FunctionError) -> Self
fn from(source: FunctionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for SrTemplateError
impl Send for SrTemplateError
impl Sync for SrTemplateError
impl Unpin for SrTemplateError
impl UnwindSafe for SrTemplateError
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