Trait sequent_repl::Context

source ·
pub trait Context<S> {
    fn sim(&mut self) -> &mut Simulation<S>;
    fn print_state(
        &self,
        terminal: &mut impl Terminal
    ) -> Result<(), AccessTerminalError>; fn decoder(&self) -> &Decoder<S>; }
Expand description

Specification of a minimal application context for simulations.

Required Methods§

A mutable reference to the simulation.

Prints the current state to the given terminal interface.

Errors

AccessTerminalError if an error occurs while writing to the terminal.

A reference to a decoder for parsing events.

Implementors§