pub struct CoreModule {
pub id: String,
pub binary: Vec<u8>,
pub functions: Vec<Function>,
pub memories: Vec<Memory>,
pub tables: Vec<Table>,
pub globals: Vec<Global>,
}Expand description
A core WebAssembly module
Fields§
§id: StringModule ID
binary: Vec<u8>Module binary data
functions: Vec<Function>Functions defined in this module
memories: Vec<Memory>Linear memories
tables: Vec<Table>Tables
globals: Vec<Global>Globals
Trait Implementations§
Source§impl Clone for CoreModule
impl Clone for CoreModule
Source§fn clone(&self) -> CoreModule
fn clone(&self) -> CoreModule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoreModule
impl Debug for CoreModule
Source§impl<'de> Deserialize<'de> for CoreModule
impl<'de> Deserialize<'de> for CoreModule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CoreModule
impl RefUnwindSafe for CoreModule
impl Send for CoreModule
impl Sync for CoreModule
impl Unpin for CoreModule
impl UnsafeUnpin for CoreModule
impl UnwindSafe for CoreModule
Blanket Implementations§
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