Function wasmparser::validate [] [src]

pub fn validate(bytes: &[u8]) -> bool

Test whether the given buffer contains a valid WebAssembly module, analogous to WebAssembly.validate in the JS API.