Enum wast::TypeDef[][src]

pub enum TypeDef<'a> {
    Func(FunctionType<'a>),
    Struct(StructType<'a>),
    Array(ArrayType<'a>),
    Module(ModuleType<'a>),
    Instance(InstanceType<'a>),
}
Expand description

A definition of a type.

Variants

Func(FunctionType<'a>)

A function type definition.

Tuple Fields of Func

0: FunctionType<'a>
Struct(StructType<'a>)

A struct type definition.

Tuple Fields of Struct

0: StructType<'a>
Array(ArrayType<'a>)

An array type definition.

Tuple Fields of Array

0: ArrayType<'a>
Module(ModuleType<'a>)

A module type definition.

Tuple Fields of Module

0: ModuleType<'a>
Instance(InstanceType<'a>)

An instance type definition.

Tuple Fields of Instance

0: InstanceType<'a>

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.