pub struct NullDriver;Expand description
Driver that discards all pipeline outputs.
Trait Implementations§
Source§impl Driver for NullDriver
impl Driver for NullDriver
Source§type Error = Infallible
type Error = Infallible
Error type returned by hook implementations.
Source§fn on_ast(&mut self, _program: &Program) -> Result<(), Self::Error>
fn on_ast(&mut self, _program: &Program) -> Result<(), Self::Error>
Observe the parsed AST before meta expansion.
Source§fn on_expanded_ast(&mut self, _program: &Program) -> Result<(), Self::Error>
fn on_expanded_ast(&mut self, _program: &Program) -> Result<(), Self::Error>
Observe the AST after meta expansion and elaboration.
Source§fn on_hir_origins(
&mut self,
_origins: &HirOriginTable,
) -> Result<(), Self::Error>
fn on_hir_origins( &mut self, _origins: &HirOriginTable, ) -> Result<(), Self::Error>
Observe side-table provenance ids keyed by HIR expression ids.
Source§fn on_checked(&mut self, _program: &CheckedProgram) -> Result<(), Self::Error>
fn on_checked(&mut self, _program: &CheckedProgram) -> Result<(), Self::Error>
Observe semantic checker annotations.
Source§fn on_mir_origins(
&mut self,
_origins: &MirOriginTable,
) -> Result<(), Self::Error>
fn on_mir_origins( &mut self, _origins: &MirOriginTable, ) -> Result<(), Self::Error>
Observe side-table provenance ids keyed by MIR function/local ids.
Source§fn on_pass_snapshot(
&mut self,
_snapshot: &PassSnapshot,
) -> Result<(), Self::Error>
fn on_pass_snapshot( &mut self, _snapshot: &PassSnapshot, ) -> Result<(), Self::Error>
Observe one pass snapshot emitted by the pipeline.
Source§fn on_wasm(&mut self, _bytes: &[u8]) -> Result<(), Self::Error>
fn on_wasm(&mut self, _bytes: &[u8]) -> Result<(), Self::Error>
Observe emitted WASM bytes when available.
Source§fn on_wasm_diagnostics(
&mut self,
_diagnostics: &[WasmDiagnostic],
) -> Result<(), Self::Error>
fn on_wasm_diagnostics( &mut self, _diagnostics: &[WasmDiagnostic], ) -> Result<(), Self::Error>
Observe non-fatal diagnostics from WASM emission.
Source§fn on_pass_timings(
&mut self,
_timings: &[PassTiming],
) -> Result<(), Self::Error>
fn on_pass_timings( &mut self, _timings: &[PassTiming], ) -> Result<(), Self::Error>
Observe per-pass timing information.
Source§fn on_provenance_summary(
&mut self,
_summary: ProvenanceSummary,
) -> Result<(), Self::Error>
fn on_provenance_summary( &mut self, _summary: ProvenanceSummary, ) -> Result<(), Self::Error>
Observe aggregate provenance counters for one compile run.
Auto Trait Implementations§
impl Freeze for NullDriver
impl RefUnwindSafe for NullDriver
impl Send for NullDriver
impl Sync for NullDriver
impl Unpin for NullDriver
impl UnwindSafe for NullDriver
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