Struct handlebars::RenderError [−][src]
pub struct RenderError {
pub desc: String,
pub template_name: Option<String>,
pub line_no: Option<usize>,
pub column_no: Option<usize>,
// some fields omitted
}Error when rendering data on template.
Fields
desc: String
template_name: Option<String>
line_no: Option<usize>
column_no: Option<usize>
Methods
impl RenderError[src]
impl RenderErrorpub fn new<T: AsRef<str>>(desc: T) -> RenderError[src]
pub fn new<T: AsRef<str>>(desc: T) -> RenderErrorpub fn with<E>(cause: E) -> RenderError where
E: Error + Send + Sync + 'static, [src]
pub fn with<E>(cause: E) -> RenderError where
E: Error + Send + Sync + 'static, Trait Implementations
impl Debug for RenderError[src]
impl Debug for RenderErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for RenderError[src]
impl Display for RenderErrorfn 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 Error for RenderError[src]
impl Error for RenderErrorfn description(&self) -> &str[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>[src]
fn cause(&self) -> Option<&Error>The lower-level cause of this error, if any. Read more
impl From<IOError> for RenderError[src]
impl From<IOError> for RenderErrorfn from(e: IOError) -> RenderError[src]
fn from(e: IOError) -> RenderErrorPerforms the conversion.
impl From<SerdeError> for RenderError[src]
impl From<SerdeError> for RenderErrorfn from(e: SerdeError) -> RenderError[src]
fn from(e: SerdeError) -> RenderErrorPerforms the conversion.
impl From<FromUtf8Error> for RenderError[src]
impl From<FromUtf8Error> for RenderErrorfn from(e: FromUtf8Error) -> RenderError[src]
fn from(e: FromUtf8Error) -> RenderErrorPerforms the conversion.
impl From<RenderError> for TemplateRenderError
impl From<RenderError> for TemplateRenderErrorfn from(err: RenderError) -> TemplateRenderError
fn from(err: RenderError) -> TemplateRenderErrorPerforms the conversion.
Auto Trait Implementations
impl Send for RenderError
impl Send for RenderErrorimpl Sync for RenderError
impl Sync for RenderError