pub struct Validator { /* private fields */ }
Expand description
Struct of WasmEdge Validator.
Implementations§
Source§impl Validator
impl Validator
Sourcepub fn create(config: Option<&Config>) -> WasmEdgeResult<Self>
pub fn create(config: Option<&Config>) -> WasmEdgeResult<Self>
Sourcepub fn validate(&self, module: &Module) -> WasmEdgeResult<()>
pub fn validate(&self, module: &Module) -> WasmEdgeResult<()>
Sourcepub fn as_ptr(&self) -> *const WasmEdge_ValidatorContext
Available on crate feature ffi
only.
pub fn as_ptr(&self) -> *const WasmEdge_ValidatorContext
ffi
only.Provides a raw pointer to the inner Validator context.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Validator
impl RefUnwindSafe for Validator
impl Send for Validator
impl Sync for Validator
impl Unpin for Validator
impl UnwindSafe for Validator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more