[][src]Struct metered_wasmi::FunctionContext

pub struct FunctionContext {
    pub is_initialized: bool,
    pub function: FuncRef,
    pub module: ModuleRef,
    pub memory: Option<MemoryRef>,
    pub position: u32,
}

Function execution context.

Fields

is_initialized: bool

Is context initialized.

function: FuncRef

Internal function reference.

module: ModuleRefmemory: Option<MemoryRef>position: u32

Current instruction position.

Methods

impl FunctionContext[src]

pub fn new(function: FuncRef) -> Self[src]

pub fn is_initialized(&self) -> bool[src]

pub fn initialize(
    &mut self,
    locals: &[Local],
    value_stack: &mut ValueStack
) -> Result<(), TrapKind>
[src]

pub fn module(&self) -> ModuleRef[src]

pub fn memory(&self) -> Option<&MemoryRef>[src]

Trait Implementations

impl Debug for FunctionContext[src]

Auto Trait Implementations

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]