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 }
Expand description
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 Debug for TemplateError
[src]
impl Debug for TemplateError
[src]impl Display for TemplateError
[src]
impl Display for TemplateError
[src]impl Error for TemplateError
[src]
impl Error for TemplateError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<Error> for TemplateError
[src]
impl From<Error> for TemplateError
[src]fn from(e: WalkdirError) -> TemplateError
[src]
fn from(e: WalkdirError) -> TemplateError
[src]Performs the conversion.
impl From<TemplateError> for RenderError
[src]
impl From<TemplateError> for RenderError
[src]fn from(e: TemplateError) -> RenderError
[src]
fn from(e: TemplateError) -> RenderError
[src]Performs the conversion.
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more