Struct tvm::ir::diagnostics::DiagnosticContext [−][src]
pub struct DiagnosticContext(_);
Implementations
A diagnostic context which records active errors and contains a renderer.
pub fn new<F>(module: IRModule, render_func: F) -> DiagnosticContext where
F: Fn(DiagnosticContext) + 'static,
Emit a diagnostic.
Emit a diagnostic and then immediately attempt to render all errors.
Trait Implementations
type Target = DiagnosticContextNode
type Target = DiagnosticContextNode
The resulting type after dereferencing.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
type Object = DiagnosticContextNode
fn downcast<U>(self) -> Result<U, Error> where
U: IsObjectRef,
<U as IsObjectRef>::Object: AsRef<Self::Object>,
Auto Trait Implementations
impl RefUnwindSafe for DiagnosticContext
impl !Send for DiagnosticContext
impl !Sync for DiagnosticContext
impl Unpin for DiagnosticContext
impl UnwindSafe for DiagnosticContext
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more