Enum gluon_base::kind::Kind [] [src]

pub enum Kind {
    Variable(u32),
    Type,
    Row,
    Function(ArcKindArcKind),
}

Kind representation

All types in gluon has a kind. Most types encountered are of the Type kind which includes things like Int, String and Option Int. There are however other types which are said to be "higher kinded" and these use the Function (a -> b) variant. These types include Option and (->) which both have the kind Type -> Type -> Type as well as Functor which has the kind Type -> Type -> Type.

Variants

Representation for a kind which is yet to be inferred.

The simplest possible kind. All values in a program have this kind.

Kinds of rows (for polymorphic records).

Constructor which takes two kinds, taking the first as argument and returning the second.

Methods

impl Kind
[src]

Trait Implementations

impl Clone for Kind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Kind
[src]

Formats the value using the given formatter.

impl Eq for Kind
[src]

impl PartialEq for Kind
[src]

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

This method tests for !=.

impl Hash for Kind
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Display for Kind
[src]

Formats the value using the given formatter.