[][src]Module whasm::grammar::core

This module provides the building blocks to declaratively define the grammar in the WebAssembly Specification.

With the current functionalities in whasm::grammar::core, all the grammar elements in release 1.0 of the specification can be expressed declaratively.

Re-exports

pub use self::byte::Byte;
pub use self::list::List;
pub use self::error::Error;

Modules

array

This module defines the deserialization of arrays of with 8 or less elements.

byte

This module defines the deserialization of whasm::grammar::Byte.

derive

This module provides a derive to implement the Grammar trait on structs and enums.

error

This module provides an enum, with variants for each type of error produced by whasm::grammar.

float

This module defines the deserialization of floating point numbers (f32 and f64).

list
signed

This module defines the deserialization of signed integer numbers (i8, i16, i32, i64 and isize).

string

This module defines the deserialization of Strings.

unsigned

This module defines the deserialization of unsigned integer numbers (u8, u16, u32, u64 and usize).

vec

Traits

Grammar

Trait that describes an element of the WebAssembly grammar (as defined in the WebAssembly Specification). Objects that implement this trait can be deserialized from an Iterator<u8>.

Functions

deserialize

Convenience function to deserialize an object that implements the Grammar trait.

Type Definitions

Result

Derive Macros

Grammar