Struct wasmedge_sys::Validator

source ·
pub struct Validator { /* private fields */ }
Expand description

Struct of WasmEdge Validator.

Implementations§

Creates a new Validator to be associated with the given global configuration.

Arguments
  • config - The global environment configuration.
Error

If fail to create a Validator, then an error is returned.

Validates a given WasmEdge Module.

Modules are valid when all components they contain are valid. Furthermore, most definitions are themselves classified with a suitable type.

Arguments
  • module - The Module to be validated.
Error

If the validation fails, then an error is returned.

Provides a raw pointer to the inner Validator context.

Trait Implementations§

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.