pub struct Context<'p, E: 'p + Environment> { /* private fields */ }
Expand description
Evaluation context. Maps each variable to its sort.
Implementations§
Source§impl<'p, E: 'p + Environment> Context<'p, E>
impl<'p, E: 'p + Environment> Context<'p, E>
pub fn from(parent: &'p Context<'p, E>) -> Context<'p, E>
pub fn find(&self, id: &E::Ident) -> Option<(usize, &GroundSort<E::Sort>)>
Sourcepub fn sort(&self, x: usize) -> &GroundSort<E::Sort>
pub fn sort(&self, x: usize) -> &GroundSort<E::Sort>
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> Freeze for Context<'p, E>
impl<'p, E> RefUnwindSafe for Context<'p, E>
impl<'p, E> Send for Context<'p, E>
impl<'p, E> Sync for Context<'p, E>
impl<'p, E> Unpin for Context<'p, E>
impl<'p, E> UnwindSafe for Context<'p, E>where
<E as Environment>::Ident: UnwindSafe + RefUnwindSafe,
<E as Environment>::Sort: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more