pub struct RuntimeDiagnostic { /* private fields */ }Expand description
Runtime Warning diagnostic emitted during the execution of the VM. Warning diagnostics indicates an recoverable issues.
Implementations§
Source§impl RuntimeDiagnostic
impl RuntimeDiagnostic
Sourcepub fn emit<O>(
&self,
out: &mut O,
sources: &Sources,
debug_info: Option<&DebugInfo>,
context: Option<&Context>,
) -> Result<(), EmitError>where
O: WriteColor,
Available on crate feature emit only.
pub fn emit<O>(
&self,
out: &mut O,
sources: &Sources,
debug_info: Option<&DebugInfo>,
context: Option<&Context>,
) -> Result<(), EmitError>where
O: WriteColor,
emit only.Generate formatted diagnostics capable of referencing source lines and hints.
See prepare for how to use.
Trait Implementations§
Source§impl Debug for RuntimeDiagnostic
impl Debug for RuntimeDiagnostic
Source§impl Display for RuntimeDiagnostic
impl Display for RuntimeDiagnostic
Source§impl Error for RuntimeDiagnostic
impl Error for RuntimeDiagnostic
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for RuntimeDiagnostic
impl RefUnwindSafe for RuntimeDiagnostic
impl Send for RuntimeDiagnostic
impl Sync for RuntimeDiagnostic
impl Unpin for RuntimeDiagnostic
impl UnwindSafe for RuntimeDiagnostic
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