Enum wast::ModuleKind[][src]

pub enum ModuleKind<'a> {
    Text(Vec<ModuleField<'a>>),
    Binary(Vec<&'a [u8]>),
}
Expand description

The different kinds of ways to define a module.

Variants

Text(Vec<ModuleField<'a>>)

A module defined in the textual s-expression format.

Tuple Fields of Text

0: Vec<ModuleField<'a>>
Binary(Vec<&'a [u8]>)

A module that had its raw binary bytes defined via the binary directive.

Tuple Fields of Binary

0: Vec<&'a [u8]>

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.