Struct NullDriver

Source
pub struct NullDriver;
Expand description

Driver that discards all pipeline outputs.

Trait Implementations§

Source§

impl Driver for NullDriver

Source§

type Error = Infallible

Error type returned by hook implementations.
Source§

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>

Observe the AST after meta expansion and elaboration.
Source§

fn on_hir(&mut self, _program: &HirProgram) -> Result<(), Self::Error>

Observe lowered HIR.
Source§

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>

Observe semantic checker annotations.
Source§

fn on_mir(&mut self, _program: &MirProgram) -> Result<(), Self::Error>

Observe lowered MIR.
Source§

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>

Observe one pass snapshot emitted by the pipeline.
Source§

fn on_rust(&mut self, _source: &str) -> Result<(), Self::Error>

Observe emitted Rust source.
Source§

fn on_wat(&mut self, _source: &str) -> Result<(), Self::Error>

Observe emitted WAT source.
Source§

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>

Observe non-fatal diagnostics from WASM emission.
Source§

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>

Observe aggregate provenance counters for one compile run.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.