Enum polytype::UnificationError [] [src]

pub enum UnificationError {
    Occurs(Variable),
    Failure(TypeType),
}

Represents errors in 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 Debug for UnificationError
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for UnificationError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for UnificationError
[src]

[src]

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

[src]

This method tests for !=.

impl Display for UnificationError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for UnificationError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more

Auto Trait Implementations