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>
Implementations
impl TemplateError
[src]
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 Error for TemplateError
[src]
impl Error for TemplateError
[src]impl From<TemplateError> for TemplateFileError
[src]
impl From<TemplateError> for TemplateFileError
[src]fn from(err: TemplateError) -> TemplateFileError
[src]
impl From<TemplateError> for TemplateRenderError
[src]
impl From<TemplateError> for TemplateRenderError
[src]fn from(err: TemplateError) -> TemplateRenderError
[src]
impl PartialEq<TemplateError> for TemplateError
[src]
impl PartialEq<TemplateError> for TemplateError
[src]