[][src]Struct gf::smt::Sort

pub struct Sort { /* fields omitted */ }

SMT sort.

Sorts are reference-counted: the Clone implementation increments the counter, and the Drop implementation decrements it, freeing the sort when it is no longer used.

Methods

impl Sort[src]

pub fn new_bit_vec(bit_len: usize) -> Self[src]

Construct a bit vector sort of given length.

pub fn new_fn<I>(args: I, result: Sort) -> Self where
    I: IntoIterator<Item = Sort>, 
[src]

Construct a function sort.

pub fn from_value(value: &ExprValue) -> Self[src]

Construct sort from a value.

pub fn kind(&self) -> &SortKind[src]

Return the sort kind.

pub fn is_bit_vec(&self) -> bool[src]

Return whether the sort is a bit vector sort.

pub fn is_bit_vec_bool(&self) -> bool[src]

Return whether the sort is a bit vector sort of length 1.

pub fn is_fn(&self) -> bool[src]

Return whether the sort is a function sort.

pub fn fn_arg_sorts(&self) -> &[Sort][src]

Return function argument sorts.

Errors

  • Panics if the sort is not a function sort.

pub fn fn_result_sort(&self) -> &Sort[src]

Return function result sort.

Errors

  • Panics if the sort is not a function sort.

Trait Implementations

impl Clone for Sort[src]

impl Eq for Sort[src]

impl PartialEq<Sort> for Sort[src]

impl Debug for Sort[src]

impl Hash for Sort[src]

impl StructuralPartialEq for Sort[src]

impl StructuralEq for Sort[src]

Auto Trait Implementations

impl Send for Sort

impl Sync for Sort

impl Unpin for Sort

impl UnwindSafe for Sort

impl RefUnwindSafe for Sort

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]