Trait rsmt2::internals::SolverBasic [] [src]

pub trait SolverBasic<'kid, Parser: ParseSmt2 + 'static> {
    fn fetch(&mut self) -> Res<()>;
    fn write<F: Fn(&mut Write) -> Res<()>>(&mut self, f: F) -> Res<()>;
    fn comment(&mut self, txt: &str) -> Res<()>;
    fn as_ref(&self) -> &[u8];
    fn parser(&self) -> &Parser;
    fn solver(&mut self) -> &mut PlainSolver<'kid, Parser>;
}

Most basic function needed to provide SMT-LIB commands.

Required Methods

Fetches data.

Applies a function to the writer on the solver's stdin.

Writes comments. Ignored for PlainSolver.

The bytes of the buffer.

The parser.

The plain solver.

Implementors