Struct wasmparser::FuncValidator [−][src]
Validation context for a WebAssembly function.
This structure is created by
Validator::code_section_entry
and is created per-function in a WebAssembly module. This structure is
suitable for sending to other threads while the original
Validator
continues processing other functions.
Implementations
impl FuncValidator
[src]
pub fn op(&mut self, offset: usize, operator: &Operator<'_>) -> Result<()>
[src]
Validates the next operator in a function.
This functions is expected to be called once-per-operator in a WebAssembly function. Each operator’s offset in the original binary and the operator itself are passed to this function.
pub fn finish(&mut self) -> Result<()>
[src]
Function that must be called after the last opcode has been processed.
This will validate that the function was properly terminated with the
end
opcode. If this function is not called then the function will not
be properly validated.
Auto Trait Implementations
impl RefUnwindSafe for FuncValidator
impl Send for FuncValidator
impl Sync for FuncValidator
impl Unpin for FuncValidator
impl UnwindSafe for FuncValidator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,