Struct sc_executor_common::util::WasmModuleInfo [−][src]
pub struct WasmModuleInfo { /* fields omitted */ }
A bunch of information collected from a WebAssembly module.
Implementations
impl WasmModuleInfo
[src]
impl WasmModuleInfo
[src]pub fn new(wasm_code: &[u8]) -> Option<Self>
[src]
Create WasmModuleInfo
from the given wasm code.
Returns None
if the wasm code cannot be deserialized.
pub fn declared_globals_count(&self) -> u32
[src]
The number of globals defined in locally in this module.
pub fn imported_globals_count(&self) -> u32
[src]
The number of imports of globals.
Auto Trait Implementations
impl RefUnwindSafe for WasmModuleInfo
impl Send for WasmModuleInfo
impl Sync for WasmModuleInfo
impl Unpin for WasmModuleInfo
impl UnwindSafe for WasmModuleInfo
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]pub fn unchecked_into(self) -> T
[src]
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,