pub enum UnifyError<V, L, C> {
UnifyFailed(Term<V, L, C>, Term<V, L, C>),
OccurCheckFailed(V, Term<V, L, C>),
UnifyVecDiffLen(Vec<Term<V, L, C>>, Vec<Term<V, L, C>>),
}Variants§
UnifyFailed(Term<V, L, C>, Term<V, L, C>)
OccurCheckFailed(V, Term<V, L, C>)
UnifyVecDiffLen(Vec<Term<V, L, C>>, Vec<Term<V, L, C>>)
Trait Implementations§
Source§impl<V: Clone, L: Clone, C: Clone> Clone for UnifyError<V, L, C>
impl<V: Clone, L: Clone, C: Clone> Clone for UnifyError<V, L, C>
Source§fn clone(&self) -> UnifyError<V, L, C>
fn clone(&self) -> UnifyError<V, L, C>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<V: Display, L: Display, C: Display> From<UnifyError<V, L, OptCons<C>>> for Diagnostic
impl<V: Display, L: Display, C: Display> From<UnifyError<V, L, OptCons<C>>> for Diagnostic
Source§fn from(val: UnifyError<V, L, OptCons<C>>) -> Self
fn from(val: UnifyError<V, L, OptCons<C>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<V, L, C> Freeze for UnifyError<V, L, C>
impl<V, L, C> RefUnwindSafe for UnifyError<V, L, C>
impl<V, L, C> Send for UnifyError<V, L, C>
impl<V, L, C> Sync for UnifyError<V, L, C>
impl<V, L, C> Unpin for UnifyError<V, L, C>
impl<V, L, C> UnsafeUnpin for UnifyError<V, L, C>
impl<V, L, C> UnwindSafe for UnifyError<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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