[−][src]Struct smt2::Context
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,
<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,
<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,
<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,
<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,
<E as Environment>::Ident: RefUnwindSafe + UnwindSafe,
<E as Environment>::Sort: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,