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

pub struct Sort { /* fields omitted */ }

🟢 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.

Implementations

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_bit_vec_of_len(&self, bit_len: usize) -> bool[src]

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

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

Return whether the sort is a function sort.

pub fn bit_vec_len(&self) -> usize[src]

Return bit vector sort length.

Errors

  • Panics if the sort is not a bit vector 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 Debug for Sort[src]

impl Eq for Sort[src]

impl Hash for Sort[src]

impl PartialEq<Sort> for Sort[src]

impl StructuralEq for Sort[src]

impl StructuralPartialEq for Sort[src]

Auto Trait Implementations

impl RefUnwindSafe for Sort

impl Send for Sort

impl Sync for Sort

impl Unpin for Sort

impl UnwindSafe for Sort

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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, 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.