Enum wasmparser::ValidPayload
source · [−]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
impl<'a> RefUnwindSafe for ValidPayload<'a>
impl<'a> Send for ValidPayload<'a>
impl<'a> Sync for ValidPayload<'a>
impl<'a> Unpin for ValidPayload<'a>
impl<'a> UnwindSafe for ValidPayload<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more