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§
source§impl RenderError
impl RenderError
pub fn new<T: AsRef<str>>(desc: T) -> RenderError
pub fn strict_error(path: Option<&String>) -> RenderError
pub fn from_error<E>(error_info: &str, cause: E) -> RenderErrorwhere E: StdError + Send + Sync + 'static,
Trait Implementations§
source§impl Debug for RenderError
impl Debug for RenderError
source§impl Default for RenderError
impl Default for RenderError
source§fn default() -> RenderError
fn default() -> RenderError
Returns the “default value” for a type. Read more
source§impl Display for RenderError
impl Display for RenderError
source§impl Error for RenderError
impl Error for RenderError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for RenderError
impl From<Error> for RenderError
source§fn from(e: SerdeError) -> RenderError
fn from(e: SerdeError) -> RenderError
Converts to this type from the input type.
source§impl From<Error> for RenderError
impl From<Error> for RenderError
source§fn from(e: IOError) -> RenderError
fn from(e: IOError) -> RenderError
Converts to this type from the input type.
source§impl From<FromUtf8Error> for RenderError
impl From<FromUtf8Error> for RenderError
source§fn from(e: FromUtf8Error) -> RenderError
fn from(e: FromUtf8Error) -> RenderError
Converts to this type from the input type.
source§impl From<ParseIntError> for RenderError
impl From<ParseIntError> for RenderError
source§fn from(e: ParseIntError) -> RenderError
fn from(e: ParseIntError) -> RenderError
Converts to this type from the input type.
source§impl From<TemplateError> for RenderError
impl From<TemplateError> for RenderError
source§fn from(e: TemplateError) -> RenderError
fn from(e: TemplateError) -> RenderError
Converts to this type from the input type.
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more