pub struct Validator { /* private fields */ }
Expand description
Struct of WasmEdge Validator.
Creates a new Validator to be associated with the given global configuration.
config
- The global environment configuration.
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.
module
- The Module to be validated.
If the validation fails, then an error is returned.
Provides a raw pointer to the inner Validator context.
Formats the value using the given formatter.
Read more
Executes the destructor for this type.
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.