Skip to main content

Tracer

Trait Tracer 

Source
trait Tracer {
    // Provided methods
    fn fft<R>(&self, f: impl FnOnce() -> R) -> R { ... }
    fn stage(&self, _name: &'static str) { ... }
    fn dims(&self, _n: [usize; 3]) { ... }
    fn solve(&self, _out: &LsqrOutcome) { ... }
}
Expand description

Instrumentation hooks for ilsqr_with. The library path (ilsqr) uses (), whose hooks do nothing, so it never reads a clock (std::time::Instant panics on wasm32-unknown-unknown). The hooks only observe; they cannot change the result.

Provided Methods§

Source

fn fft<R>(&self, f: impl FnOnce() -> R) -> R

Run one 3-D transform on the padded grid.

Source

fn stage(&self, _name: &'static str)

A stage has just ended.

Source

fn dims(&self, _n: [usize; 3])

The padded grid.

Source

fn solve(&self, _out: &LsqrOutcome)

An LSQR solve has ended.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Tracer for ()

Implementors§