Struct handlebars::TemplateError
source · pub struct TemplateError {
pub reason: TemplateErrorReason,
pub template_name: Option<String>,
pub line_no: Option<usize>,
pub column_no: Option<usize>,
/* private fields */
}
Expand description
Error on parsing template.
Fields§
§reason: TemplateErrorReason
👎Deprecated: public access to reason to be removed soon, use .reason() instead.
§template_name: Option<String>
§line_no: Option<usize>
§column_no: Option<usize>
Implementations§
source§impl TemplateError
impl TemplateError
pub fn of(e: TemplateErrorReason) -> TemplateError
pub fn at( self, template_str: &str, line_no: usize, column_no: usize ) -> TemplateError
pub fn in_template(self, name: String) -> TemplateError
Trait Implementations§
source§impl Debug for TemplateError
impl Debug for TemplateError
source§impl Display for TemplateError
impl Display for TemplateError
source§impl Error for TemplateError
impl Error for TemplateError
1.30.0 · 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<TemplateError> for RenderError
impl From<TemplateError> for RenderError
source§fn from(e: TemplateError) -> RenderError
fn from(e: TemplateError) -> RenderError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TemplateError
impl Send for TemplateError
impl Sync for TemplateError
impl Unpin for TemplateError
impl !UnwindSafe for TemplateError
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