pub struct OwnedLinearMemorySpec {
pub heap: HeapSpec,
pub initializer: OwnedSparseData,
}Expand description
Specification of the linear memory of a module
This is a version of LinearMemorySpec with an
OwnedSparseData for the initializer.
This type is useful when directly building up a value to be serialized.
Fields§
§heap: HeapSpecSpecification of the heap used to implement the linear memory
initializer: OwnedSparseDataInitialization values for linear memory
Implementations§
Source§impl OwnedLinearMemorySpec
impl OwnedLinearMemorySpec
pub fn to_ref<'a>(&'a self) -> LinearMemorySpec<'a>
Auto Trait Implementations§
impl Freeze for OwnedLinearMemorySpec
impl RefUnwindSafe for OwnedLinearMemorySpec
impl Send for OwnedLinearMemorySpec
impl Sync for OwnedLinearMemorySpec
impl Unpin for OwnedLinearMemorySpec
impl UnsafeUnpin for OwnedLinearMemorySpec
impl UnwindSafe for OwnedLinearMemorySpec
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