pub struct ArchivedTinyWasmModulewhere
Option<FuncAddr>: Archive,
Box<[WasmFunction]>: Archive,
Box<[FuncType]>: Archive,
Box<[Export]>: Archive,
Box<[Global]>: Archive,
Box<[TableType]>: Archive,
Box<[MemoryType]>: Archive,
Box<[Import]>: Archive,
Box<[Data]>: Archive,
Box<[Element]>: Archive,{
pub start_func: Archived<Option<FuncAddr>>,
pub funcs: Archived<Box<[WasmFunction]>>,
pub func_types: Archived<Box<[FuncType]>>,
pub exports: Archived<Box<[Export]>>,
pub globals: Archived<Box<[Global]>>,
pub table_types: Archived<Box<[TableType]>>,
pub memory_types: Archived<Box<[MemoryType]>>,
pub imports: Archived<Box<[Import]>>,
pub data: Archived<Box<[Data]>>,
pub elements: Archived<Box<[Element]>>,
}
Expand description
An archived TinyWasmModule
Fields§
§start_func: Archived<Option<FuncAddr>>
The archived counterpart of TinyWasmModule::start_func
funcs: Archived<Box<[WasmFunction]>>
The archived counterpart of TinyWasmModule::funcs
func_types: Archived<Box<[FuncType]>>
The archived counterpart of TinyWasmModule::func_types
exports: Archived<Box<[Export]>>
The archived counterpart of TinyWasmModule::exports
globals: Archived<Box<[Global]>>
The archived counterpart of TinyWasmModule::globals
table_types: Archived<Box<[TableType]>>
The archived counterpart of TinyWasmModule::table_types
memory_types: Archived<Box<[MemoryType]>>
The archived counterpart of TinyWasmModule::memory_types
imports: Archived<Box<[Import]>>
The archived counterpart of TinyWasmModule::imports
data: Archived<Box<[Data]>>
The archived counterpart of TinyWasmModule::data
elements: Archived<Box<[Element]>>
The archived counterpart of TinyWasmModule::elements
Trait Implementations§
Source§impl<__C: ?Sized> CheckBytes<__C> for ArchivedTinyWasmModulewhere
Option<FuncAddr>: Archive,
Box<[WasmFunction]>: Archive,
Box<[FuncType]>: Archive,
Box<[Export]>: Archive,
Box<[Global]>: Archive,
Box<[TableType]>: Archive,
Box<[MemoryType]>: Archive,
Box<[Import]>: Archive,
Box<[Data]>: Archive,
Box<[Element]>: Archive,
Archived<Option<FuncAddr>>: CheckBytes<__C>,
Archived<Box<[WasmFunction]>>: CheckBytes<__C>,
Archived<Box<[FuncType]>>: CheckBytes<__C>,
Archived<Box<[Export]>>: CheckBytes<__C>,
Archived<Box<[Global]>>: CheckBytes<__C>,
Archived<Box<[TableType]>>: CheckBytes<__C>,
Archived<Box<[MemoryType]>>: CheckBytes<__C>,
Archived<Box<[Import]>>: CheckBytes<__C>,
Archived<Box<[Data]>>: CheckBytes<__C>,
Archived<Box<[Element]>>: CheckBytes<__C>,
impl<__C: ?Sized> CheckBytes<__C> for ArchivedTinyWasmModulewhere
Option<FuncAddr>: Archive,
Box<[WasmFunction]>: Archive,
Box<[FuncType]>: Archive,
Box<[Export]>: Archive,
Box<[Global]>: Archive,
Box<[TableType]>: Archive,
Box<[MemoryType]>: Archive,
Box<[Import]>: Archive,
Box<[Data]>: Archive,
Box<[Element]>: Archive,
Archived<Option<FuncAddr>>: CheckBytes<__C>,
Archived<Box<[WasmFunction]>>: CheckBytes<__C>,
Archived<Box<[FuncType]>>: CheckBytes<__C>,
Archived<Box<[Export]>>: CheckBytes<__C>,
Archived<Box<[Global]>>: CheckBytes<__C>,
Archived<Box<[TableType]>>: CheckBytes<__C>,
Archived<Box<[MemoryType]>>: CheckBytes<__C>,
Archived<Box<[Import]>>: CheckBytes<__C>,
Archived<Box<[Data]>>: CheckBytes<__C>,
Archived<Box<[Element]>>: CheckBytes<__C>,
Source§type Error = StructCheckError
type Error = StructCheckError
The error that may result from checking the type.
Source§unsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C,
) -> Result<&'__bytecheck Self, StructCheckError>
unsafe fn check_bytes<'__bytecheck>( value: *const Self, context: &mut __C, ) -> Result<&'__bytecheck Self, StructCheckError>
Checks whether the given pointer points to a valid value within the
given context. Read more
Auto Trait Implementations§
impl Freeze for ArchivedTinyWasmModule
impl RefUnwindSafe for ArchivedTinyWasmModule
impl Send for ArchivedTinyWasmModule
impl Sync for ArchivedTinyWasmModule
impl !Unpin for ArchivedTinyWasmModule
impl UnwindSafe for ArchivedTinyWasmModule
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.