[][src]Struct gf::smt::BoundExpr

pub struct BoundExpr<B> {
    pub const_fn: ConstFn,
    pub bindings: Vec<B>,
}

Bound expression.

Fields

const_fn: ConstFn

Constant function to evaluate.

bindings: Vec<B>

Bindings.

Methods

impl<B> BoundExpr<B>[src]

pub fn from_const_expr(const_expr: ConstExpr) -> Self[src]

Wrap a constant expression.

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

Wrap a value.

pub fn identity(binding: B, binding_sort: Sort) -> Self[src]

Create an identity bound expression.

impl<B: Binding> BoundExpr<B>[src]

pub fn eval(&self, context: &B::Context) -> Result<ExprValue, BoundExprError<B>>[src]

Evaluate the expression.

Trait Implementations

impl<B: Clone> Clone for BoundExpr<B>[src]

impl<B: Eq> Eq for BoundExpr<B>[src]

impl<B: PartialEq> PartialEq<BoundExpr<B>> for BoundExpr<B>[src]

impl<B: Debug> Debug for BoundExpr<B>[src]

impl<B: Hash> Hash for BoundExpr<B>[src]

impl<B> StructuralPartialEq for BoundExpr<B>[src]

impl<B> StructuralEq for BoundExpr<B>[src]

Auto Trait Implementations

impl<B> Send for BoundExpr<B> where
    B: Send

impl<B> Sync for BoundExpr<B> where
    B: Sync

impl<B> Unpin for BoundExpr<B> where
    B: Unpin

impl<B> UnwindSafe for BoundExpr<B> where
    B: UnwindSafe

impl<B> RefUnwindSafe for BoundExpr<B> where
    B: RefUnwindSafe

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]