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]
impl TemplateError
pub fn of(e: TemplateErrorReason) -> TemplateError
[src]
pub fn of(e: TemplateErrorReason) -> TemplateError
pub fn at(
self,
template_str: &str,
line_no: usize,
column_no: usize
) -> TemplateError
[src]
pub fn at(
self,
template_str: &str,
line_no: usize,
column_no: usize
) -> TemplateError
pub fn in_template(self, name: String) -> TemplateError
[src]
pub fn in_template(self, name: String) -> TemplateError
Trait Implementations
impl Debug for TemplateError
[src]
impl Debug for TemplateError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for TemplateError
[src]
impl PartialEq for TemplateError
fn eq(&self, other: &TemplateError) -> bool
[src]
fn eq(&self, other: &TemplateError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TemplateError) -> bool
[src]
fn ne(&self, other: &TemplateError) -> bool
This method tests for !=
.
impl Error for TemplateError
[src]
impl Error for TemplateError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
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]
impl Display for TemplateError
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<TemplateError> for TemplateFileError
impl From<TemplateError> for TemplateFileError
fn from(err: TemplateError) -> TemplateFileError
fn from(err: TemplateError) -> TemplateFileError
Performs the conversion.
impl From<TemplateError> for TemplateRenderError
impl From<TemplateError> for TemplateRenderError
fn from(err: TemplateError) -> TemplateRenderError
fn from(err: TemplateError) -> TemplateRenderError
Performs the conversion.
Auto Trait Implementations
impl Send for TemplateError
impl Send for TemplateError
impl Sync for TemplateError
impl Sync for TemplateError