Enum polytype::UnificationError
[−]
[src]
pub enum UnificationError<N: Name = &'static str> { Occurs(Variable), Failure(Type<N>, Type<N>), }
Errors during unification.
Variants
Occurs(Variable)
Occurs
happens when occurs checks fail (i.e. a type variable is
unified recursively). The id of the bad type variable is supplied.
Failure(Type<N>, Type<N>)
Failure
happens when symbols or type variants don't unify because of
structural differences.
Trait Implementations
impl<N: Debug + Name> Debug for UnificationError<N>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<N: Clone + Name> Clone for UnificationError<N>
[src]
fn clone(&self) -> UnificationError<N>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<N: PartialEq + Name> PartialEq for UnificationError<N>
[src]
fn eq(&self, __arg_0: &UnificationError<N>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &UnificationError<N>) -> bool
[src]
This method tests for !=
.
impl<N: Name> Display for UnificationError<N>
[src]
Auto Trait Implementations
impl<N> Send for UnificationError<N> where
N: Send,
N: Send,
impl<N> Sync for UnificationError<N> where
N: Sync,
N: Sync,