[][src]Struct smt2::Context

pub struct Context<'p, E: 'p + Environment> { /* fields omitted */ }

Evaluation context. Maps each variable to its sort.

Implementations

impl<'p, E: 'p + Environment> Context<'p, E>[src]

pub fn new() -> Context<'p, E>[src]

Create a new empty context.

pub fn from(parent: &'p Context<'p, E>) -> Context<'p, E>[src]

pub fn find(&self, id: &E::Ident) -> Option<(usize, &GroundSort<E::Sort>)>[src]

pub fn sort(&self, x: usize) -> &GroundSort<E::Sort>[src]

Get the sort of the given variable (identified with its index). Panics if the variable is not defined in the context.

Auto Trait Implementations

impl<'p, E> RefUnwindSafe for Context<'p, E> where
    <E as Environment>::Ident: RefUnwindSafe,
    <E as Environment>::Sort: RefUnwindSafe

impl<'p, E> Send for Context<'p, E> where
    <E as Environment>::Ident: Send + Sync,
    <E as Environment>::Sort: Send + Sync

impl<'p, E> Sync for Context<'p, E> where
    <E as Environment>::Ident: Sync,
    <E as Environment>::Sort: Sync

impl<'p, E> Unpin for Context<'p, E> where
    <E as Environment>::Ident: Unpin,
    <E as Environment>::Sort: Unpin

impl<'p, E> UnwindSafe for Context<'p, E> where
    <E as Environment>::Ident: RefUnwindSafe + UnwindSafe,
    <E as Environment>::Sort: RefUnwindSafe + UnwindSafe

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