Enum polytype::UnificationError[][src]

pub enum UnificationError<N: Name = &'static str> {
    Occurs(Variable),
    Failure(Type<N>, Type<N>),
}

Errors during unification.

Variants

Occurs happens when occurs checks fail (i.e. a type variable is unified recursively). The id of the bad type variable is supplied.

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]

Formats the value using the given formatter. Read more

impl<N: Clone + Name> Clone for UnificationError<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: PartialEq + Name> PartialEq for UnificationError<N>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<N: Name> Display for UnificationError<N>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<N> Send for UnificationError<N> where
    N: Send

impl<N> Sync for UnificationError<N> where
    N: Sync