pub struct BrowserDriver {
artifacts: BrowserArtifacts,
}Expand description
Driver that records browser-facing artifacts during compilation.
Fields§
§artifacts: BrowserArtifactsImplementations§
Source§impl BrowserDriver
impl BrowserDriver
Sourcepub fn into_artifacts(self) -> BrowserArtifacts
pub fn into_artifacts(self) -> BrowserArtifacts
Consume the driver and return the accumulated browser artifacts.
Trait Implementations§
Source§impl Debug for BrowserDriver
impl Debug for BrowserDriver
Source§impl Default for BrowserDriver
impl Default for BrowserDriver
Source§fn default() -> BrowserDriver
fn default() -> BrowserDriver
Returns the “default value” for a type. Read more
Source§impl Driver for BrowserDriver
impl Driver for BrowserDriver
Source§type Error = Infallible
type Error = Infallible
Error type returned by hook implementations.
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_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_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_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_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 BrowserDriver
impl RefUnwindSafe for BrowserDriver
impl Send for BrowserDriver
impl Sync for BrowserDriver
impl Unpin for BrowserDriver
impl UnwindSafe for BrowserDriver
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