Struct weld_codegen::render::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: Stringtemplate_name: Option<String>line_no: Option<usize>column_no: Option<usize>Implementations
sourceimpl RenderError
impl RenderError
pub fn new<T>(desc: T) -> RenderError where
T: AsRef<str>,
pub fn strict_error(path: Option<&String>) -> RenderError
pub fn from_error<E>(error_info: &str, cause: E) -> RenderError where
E: 'static + Error + Send + Sync,
Trait Implementations
sourceimpl Debug for RenderError
impl Debug for RenderError
sourceimpl Default for RenderError
impl Default for RenderError
sourcepub fn default() -> RenderError
pub fn default() -> RenderError
Returns the “default value” for a type. Read more
sourceimpl Display for RenderError
impl Display for RenderError
sourceimpl Error for RenderError
impl Error for RenderError
sourcepub fn source(&self) -> Option<&(dyn Error + 'static)>
pub 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
sourcepub fn from(e: Error) -> RenderError
pub fn from(e: Error) -> RenderError
Performs the conversion.
sourceimpl From<Error> for RenderError
impl From<Error> for RenderError
sourcepub fn from(e: Error) -> RenderError
pub fn from(e: Error) -> RenderError
Performs the conversion.
sourceimpl From<FromUtf8Error> for RenderError
impl From<FromUtf8Error> for RenderError
sourcepub fn from(e: FromUtf8Error) -> RenderError
pub fn from(e: FromUtf8Error) -> RenderError
Performs the conversion.
sourceimpl From<ParseIntError> for RenderError
impl From<ParseIntError> for RenderError
sourcepub fn from(e: ParseIntError) -> RenderError
pub fn from(e: ParseIntError) -> RenderError
Performs the conversion.
sourceimpl From<RenderError> for Error
impl From<RenderError> for Error
sourcefn from(e: RenderError) -> Error
fn from(e: RenderError) -> Error
Performs the conversion.
sourceimpl From<TemplateError> for RenderError
impl From<TemplateError> for RenderError
sourcepub fn from(e: TemplateError) -> RenderError
pub fn from(e: TemplateError) -> RenderError
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more