[−][src]Struct lucet_module::owned::OwnedModuleData
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>,
features: ModuleFeatures
) -> Self
[src]
linear_memory: Option<OwnedLinearMemorySpec>,
globals_spec: Vec<OwnedGlobalSpec>,
function_info: Vec<OwnedFunctionMetadata>,
imports: Vec<OwnedImportFunction>,
exports: Vec<OwnedExportFunction>,
signatures: Vec<Signature>,
features: ModuleFeatures
) -> Self
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
impl Send for OwnedModuleData
impl Sync for OwnedModuleData
impl Unpin for OwnedModuleData
impl UnwindSafe for OwnedModuleData
impl RefUnwindSafe for OwnedModuleData
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self