Enum rsmt2::conf::SmtStyle[][src]

pub enum SmtStyle {
    Z3,
    CVC4,
    Yices2,
}

Solver styles.

Variants

Z3

Z3-style smt solver.

CVC4

CVC4-style smt solver.

NB: CVC4 has only been partially tested at this point.

Yices2

Yices-2-style smt solver.

NB: Yices 2 has only been partially tested at this point.

Implementations

impl SmtStyle[src]

pub fn new(self, cmd: impl Into<String>) -> SmtConf[src]

Configuration constructor.

pub fn default(self) -> SmtConf[src]

Default configuration for a solver style.

Warning

The command used to run a particular solver is up to the end-user. As such, it does not make sense to use default commands for anything else than local testing. You should explicitely pass the command to use with Self::new instead.

pub fn of_str(s: &str) -> Option<Self>[src]

A solver style from a string.

pub fn str_keys() -> Vec<&'static str>[src]

Legal string representations of solver styles.

pub fn env_cmd(self) -> SmtRes<Option<String>>[src]

Solver style command from the corresponding environment variable.

The environement variables scanned are Z3_ENV_VAR, CVC4_ENV_VAR and YICES_2_ENV_VAR.

pub fn cmd(self) -> &'static str[src]

Default command for a solver style.

Trait Implementations

impl Clone for SmtStyle[src]

impl Copy for SmtStyle[src]

impl Debug for SmtStyle[src]

impl Display for SmtStyle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.