Struct handlebars::TemplateError
[−]
[src]
pub struct TemplateError { pub reason: TemplateErrorReason, pub template_name: Option<String>, pub line_no: Option<usize>, pub column_no: Option<usize>, // some fields omitted }
Error on parsing template.
Fields
reason: TemplateErrorReason
template_name: Option<String>
line_no: Option<usize>
column_no: Option<usize>
Methods
impl TemplateError
[src]
pub fn of(e: TemplateErrorReason) -> TemplateError
[src]
pub fn at(
self,
template_str: &str,
line_no: usize,
column_no: usize
) -> TemplateError
[src]
self,
template_str: &str,
line_no: usize,
column_no: usize
) -> TemplateError
pub fn in_template(self, name: String) -> TemplateError
[src]
Trait Implementations
impl Debug for TemplateError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for TemplateError
[src]
fn eq(&self, __arg_0: &TemplateError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TemplateError) -> bool
[src]
This method tests for !=
.
impl Error for TemplateError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more
impl Display for TemplateError
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl From<TemplateError> for TemplateFileError
fn from(err: TemplateError) -> TemplateFileError
Performs the conversion.
impl From<TemplateError> for TemplateRenderError
fn from(err: TemplateError) -> TemplateRenderError
Performs the conversion.