pub struct RuntimeWarningDiagnostic { /* private fields */ }
Expand description
Runtime Warning diagnostic emitted during the execution of the VM. Warning diagnostics indicates an recoverable issues.
Implementations§
Source§impl RuntimeWarningDiagnostic
impl RuntimeWarningDiagnostic
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 RuntimeWarningDiagnostic
impl Debug for RuntimeWarningDiagnostic
Source§impl Display for RuntimeWarningDiagnostic
impl Display for RuntimeWarningDiagnostic
Source§impl Error for RuntimeWarningDiagnostic
impl Error for RuntimeWarningDiagnostic
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 RuntimeWarningDiagnostic
impl RefUnwindSafe for RuntimeWarningDiagnostic
impl Send for RuntimeWarningDiagnostic
impl Sync for RuntimeWarningDiagnostic
impl Unpin for RuntimeWarningDiagnostic
impl UnwindSafe for RuntimeWarningDiagnostic
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