pub struct Unifier<V, L, C> { /* private fields */ }Implementations§
Source§impl<V: Eq + Hash + Clone, L: PartialEq + Clone, C: Eq + Clone> Unifier<V, L, C>
impl<V: Eq + Hash + Clone, L: PartialEq + Clone, C: Eq + Clone> Unifier<V, L, C>
pub fn deref<'a>(&'a self, term: &'a Term<V, L, C>) -> &'a Term<V, L, C>
pub fn subst_opt(&self, term: &Term<V, L, C>) -> Option<Term<V, L, C>>
pub fn subst(&self, term: &Term<V, L, C>) -> Term<V, L, C>
pub fn subst_err(&self, err: &UnifyError<V, L, C>) -> UnifyError<V, L, C>
pub fn fresh(&mut self, var: V)
pub fn unify( &mut self, lhs: &Term<V, L, C>, rhs: &Term<V, L, C>, ) -> Result<(), UnifyError<V, L, C>>
pub fn unify_many( &mut self, lhss: &[Term<V, L, C>], rhss: &[Term<V, L, C>], ) -> Result<(), UnifyError<V, L, C>>
Trait Implementations§
Auto Trait Implementations§
impl<V, L, C> Freeze for Unifier<V, L, C>
impl<V, L, C> RefUnwindSafe for Unifier<V, L, C>
impl<V, L, C> Send for Unifier<V, L, C>
impl<V, L, C> Sync for Unifier<V, L, C>
impl<V, L, C> Unpin for Unifier<V, L, C>
impl<V, L, C> UnsafeUnpin for Unifier<V, L, C>
impl<V, L, C> UnwindSafe for Unifier<V, L, C>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more