pub struct Subst(/* private fields */);
Expand description
A substitution.
Implementations§
Source§impl Subst
impl Subst
Sourcepub fn apply_to_term<'a>(&'a self, term: &'a Term) -> Arc<Term>
pub fn apply_to_term<'a>(&'a self, term: &'a Term) -> Arc<Term>
Applies a substitution to a term.
Sourcepub fn apply_to_lit(&self, lit: &Lit) -> Lit
pub fn apply_to_lit(&self, lit: &Lit) -> Lit
Applies a substitution to a lit.
Sourcepub fn get(&self, k: usize) -> Option<&Arc<Term>>
pub fn get(&self, k: usize) -> Option<&Arc<Term>>
Gets the replacement for the given variable index, if any.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Subst
impl RefUnwindSafe for Subst
impl Send for Subst
impl Sync for Subst
impl Unpin for Subst
impl UnwindSafe for Subst
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