#[non_exhaustive]pub struct RenderError {
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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.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
👎Deprecated since 5.0.0: Use RenderErrorReason instead
pub fn strict_error(path: Option<&String>) -> RenderError
pub fn from_error<E>(_error_info: &str, cause: E) -> RenderError
👎Deprecated since 5.0.0: Use RenderErrorReason::NestedError instead
Sourcepub fn reason(&self) -> &RenderErrorReason
pub fn reason(&self) -> &RenderErrorReason
Get RenderErrorReason
for this error
Trait Implementations§
Source§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
Source§impl Error for RenderError
impl Error for RenderError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
Returns 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: 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) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<RenderError> for RenderErrorReason
impl From<RenderError> for RenderErrorReason
Source§fn from(e: RenderError) -> Self
fn from(e: RenderError) -> Self
Converts to this type from the input type.
Source§impl From<RenderErrorReason> for RenderError
impl From<RenderErrorReason> for RenderError
Source§fn from(e: RenderErrorReason) -> RenderError
fn from(e: RenderErrorReason) -> 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) -> Self
fn from(e: TemplateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RenderError
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