Enum wasmer_vm::MemoryStyle [−][src]
pub enum MemoryStyle {
Dynamic {
offset_guard_size: u64,
},
Static {
bound: Pages,
offset_guard_size: u64,
},
}Expand description
Implementation styles for WebAssembly linear memory.
Variants
The actual memory can be resized and moved.
Show fields
Fields of Dynamic
offset_guard_size: u64Our chosen offset-guard size.
It represents the size in bytes of extra guard pages after the end to optimize loads and stores with constant offsets.
Address space is allocated up front.
Show fields
Implementations
Returns the offset-guard size
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
Returns the size of the referenced value in bytes. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for MemoryStyleimpl Send for MemoryStyleimpl Sync for MemoryStyleimpl Unpin for MemoryStyleimpl UnwindSafe for MemoryStyleBlanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::MetadataConverts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.