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]

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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]