Expand description
ProofEventSink trait + ProofSink wrapper.
ProofSink is the handle that stwo-ml stores in a thread-local and calls
into during proving. It wraps an optional boxed sink so that the inactive
(no visualization) path is a single Option::is_some() branch with no
heap allocation.
Structs§
- Channel
Sink - A sink backed by a
crossbeambounded channel. - Collecting
Sink - A sink that collects all emitted events into a
Vec. Useful in integration tests that need to assert on the sequence of events. - Null
Sink - A sink that discards every event. Used as the default when visualization is disabled. The compiler should inline and eliminate all calls through this.
- Proof
Sink - Wrapper around an optional
ProofEventSink.
Traits§
- Proof
Event Sink - A consumer of proof events.