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.

Func(FuncValidator<ValidatorResources>, FunctionBody<'a>)

A function was found to be validate.

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.