Struct handlebars::RenderError
source · [−]pub struct RenderError {
pub desc: String,
pub template_name: Option<String>,
pub line_no: Option<usize>,
pub column_no: Option<usize>,
/* private fields */
}
Expand description
Error when rendering data on template.
Fields
desc: String
template_name: Option<String>
line_no: Option<usize>
column_no: Option<usize>
Implementations
sourceimpl RenderError
impl RenderError
pub fn new<T: AsRef<str>>(desc: T) -> RenderError
pub fn strict_error(path: Option<&String>) -> RenderError
pub fn with<E>(cause: E) -> RenderError where
E: Error + Send + Sync + 'static,
👎 Deprecated
pub fn from_error<E>(error_kind: &str, cause: E) -> RenderError where
E: Error + Send + Sync + 'static,
Trait Implementations
sourceimpl Debug for RenderError
impl Debug for RenderError
sourceimpl Display for RenderError
impl Display for RenderError
sourceimpl Error for RenderError
impl Error for RenderError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for RenderError
impl From<Error> for RenderError
sourcefn from(e: IOError) -> RenderError
fn from(e: IOError) -> RenderError
Performs the conversion.
sourceimpl From<Error> for RenderError
impl From<Error> for RenderError
sourcefn from(e: SerdeError) -> RenderError
fn from(e: SerdeError) -> RenderError
Performs the conversion.
sourceimpl From<FromUtf8Error> for RenderError
impl From<FromUtf8Error> for RenderError
sourcefn from(e: FromUtf8Error) -> RenderError
fn from(e: FromUtf8Error) -> RenderError
Performs the conversion.
sourceimpl From<ParseIntError> for RenderError
impl From<ParseIntError> for RenderError
sourcefn from(e: ParseIntError) -> RenderError
fn from(e: ParseIntError) -> RenderError
Performs the conversion.
sourceimpl From<RenderError> for TemplateRenderError
impl From<RenderError> for TemplateRenderError
sourcefn from(err: RenderError) -> TemplateRenderError
fn from(err: RenderError) -> TemplateRenderError
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl !UnwindSafe for RenderError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more