#[repr(C)]
pub struct VMDynamicFunctionContext<T> { pub address: *const VMFunctionBody, pub ctx: T, }
Expand description

The VMDynamicFunctionContext is the context that dynamic functions will receive when called (rather than vmctx). A dynamic function is a function for which we don’t know the signature until runtime.

As such, we need to expose the dynamic function context containing the relevant context for running the function indicated in address.

Fields§

§address: *const VMFunctionBody

The address of the inner dynamic function.

Note: The function must be on the form of (*mut T, SignatureIndex, *mut i128).

§ctx: T

The context that the inner dynamic function will receive.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Deserializes using the given deserializer

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type for metadata in pointers and references to Self.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.