Enum polytype::UnificationError [−][src]
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]
impl<N: Debug + Name> Debug for UnificationError<N>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<N: Clone + Name> Clone for UnificationError<N>
[src]
impl<N: Clone + Name> Clone for UnificationError<N>
fn clone(&self) -> UnificationError<N>
[src]
fn clone(&self) -> UnificationError<N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
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]
impl<N: PartialEq + Name> PartialEq for UnificationError<N>
fn eq(&self, other: &UnificationError<N>) -> bool
[src]
fn eq(&self, other: &UnificationError<N>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &UnificationError<N>) -> bool
[src]
fn ne(&self, other: &UnificationError<N>) -> bool
This method tests for !=
.
impl<N: Name> Display for UnificationError<N>
[src]
impl<N: Name> Display for UnificationError<N>
Auto Trait Implementations
impl<N> Send for UnificationError<N> where
N: Send,
impl<N> Send for UnificationError<N> where
N: Send,
impl<N> Sync for UnificationError<N> where
N: Sync,
impl<N> Sync for UnificationError<N> where
N: Sync,