[][src]Struct lucet_module_data::owned::OwnedModuleData

pub struct OwnedModuleData { /* fields omitted */ }

The metadata (and some data) for a Lucet module.

This is a version of ModuleData with owned types throughout, rather than references to support zero-copy deserialization. This type is useful when directly building up a value to be serialized.

Methods

impl OwnedModuleData[src]

pub fn new(
    linear_memory: Option<OwnedLinearMemorySpec>,
    globals_spec: Vec<OwnedGlobalSpec>,
    function_info: Vec<OwnedFunctionMetadata>,
    imports: Vec<OwnedImportFunction>,
    exports: Vec<OwnedExportFunction>,
    signatures: Vec<Signature>
) -> Self
[src]

pub fn to_ref<'a>(&'a self) -> ModuleData<'a>[src]

Create a ModuleData backed by the values in this OwnedModuleData.

pub fn empty() -> Self[src]

pub fn with_heap_spec(self, heap_spec: HeapSpec) -> Self[src]

Trait Implementations

impl Default for OwnedModuleData[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self