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]fn eq(&self, other: &TemplateError) -> bool
[src]
fn ne(&self, other: &TemplateError) -> bool
[src]
impl StructuralPartialEq for TemplateError
[src]
impl StructuralPartialEq for TemplateError
[src]Auto Trait Implementations
impl RefUnwindSafe for TemplateError
impl RefUnwindSafe for TemplateError
impl Send for TemplateError
impl Send for TemplateError
impl Sync for TemplateError
impl Sync for TemplateError
impl Unpin for TemplateError
impl Unpin for TemplateError
impl UnwindSafe for TemplateError
impl UnwindSafe for TemplateError