pub enum DiagnosticRenderError {
Prepare(PrepareError),
Render(RenderError),
}Expand description
A failure while preparing or rendering one owned diagnostic.
Variants§
Prepare(PrepareError)
Snapshot preparation failed.
Render(RenderError)
Rendering a prepared snapshot failed.
Trait Implementations§
Source§impl Clone for DiagnosticRenderError
impl Clone for DiagnosticRenderError
Source§impl Debug for DiagnosticRenderError
impl Debug for DiagnosticRenderError
Source§impl Display for DiagnosticRenderError
impl Display for DiagnosticRenderError
impl Eq for DiagnosticRenderError
Source§impl Error for DiagnosticRenderError
impl Error for DiagnosticRenderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + '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<PrepareError> for DiagnosticRenderError
impl From<PrepareError> for DiagnosticRenderError
Source§fn from(error: PrepareError) -> Self
fn from(error: PrepareError) -> Self
Converts to this type from the input type.
Source§impl From<RenderError> for DiagnosticRenderError
impl From<RenderError> for DiagnosticRenderError
Source§fn from(error: RenderError) -> Self
fn from(error: RenderError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DiagnosticRenderError
impl PartialEq for DiagnosticRenderError
impl StructuralPartialEq for DiagnosticRenderError
Auto Trait Implementations§
impl Forget for DiagnosticRenderError
impl Freeze for DiagnosticRenderError
impl Move for DiagnosticRenderError
impl RefUnwindSafe for DiagnosticRenderError
impl Send for DiagnosticRenderError
impl Sync for DiagnosticRenderError
impl Unpin for DiagnosticRenderError
impl UnsafeUnpin for DiagnosticRenderError
impl UnwindSafe for DiagnosticRenderError
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