Enum wasmparser::ValidPayload[][src]

pub enum ValidPayload<'a> {
    Ok,
    Submodule(Parser),
    Func(FuncValidator<ValidatorResources>, FunctionBody<'a>),
}
Expand description

Possible return values from Validator::payload.

Variants

Ok

The payload validated, no further action need be taken.

Submodule(Parser)

The payload validated, but it started a nested module.

This result indicates that the specified parser should be used instead of the currently-used parser until this returned one ends.

Tuple Fields of Submodule

0: Parser

A function was found to be validate.

Tuple Fields of Func

0: FuncValidator<ValidatorResources>1: FunctionBody<'a>

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.