Enum kailua_types::ty::Tables [] [src]

pub enum Tables {
    Fields(RVar),
    Array(Slot),
    ArrayN(Slot),
    Map(TySlot),
    All,
}

Table types.

Variants

A tuple or record type, represented by a row variable.

An empty inextensible table is represented as Tables::Fields(RVar::empty()).

An array type vector<T>, where T is implicitly nilable.

This type should be explicit (as it's indistinguishable from map<integer, T>).

Almost same to Tables::Array but also allows for indexing n (always results in integer).

This is used for an implicit arg variable for variadic arguments in Lua 5.0. Kailua supports this in Lua 5.1 for the backward compatibility.

A map type map<T, U>, where T is implicitly non-nilable and U is implicitly nilable.

This type should be explicit (as map<integer, U> is indistinguishable from vector<U>).

Any table type.

Methods

impl Tables
[src]

Trait Implementations

impl Clone for Tables
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Union for Tables
[src]

A type of the resulting type.

Calculates a union type of self and other, explicitly or implicitly. Read more

impl Lattice for Tables
[src]

Asserts that self is a consistent subtype of other under the type context.

Asserts that self is a consistent type equal to other under the type context.

impl PartialEq for Tables
[src]

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

This method tests for !=.

impl Display for Tables
[src]

impl Debug for Tables
[src]

Formats the value using the given formatter.