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: u64
Our 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
impl MemoryStyle
[src]
impl MemoryStyle
[src]pub fn offset_guard_size(&self) -> u64
[src]
pub fn offset_guard_size(&self) -> u64
[src]Returns the offset-guard size
Trait Implementations
impl Clone for MemoryStyle
[src]
impl Clone for MemoryStyle
[src]fn clone(&self) -> MemoryStyle
[src]
fn clone(&self) -> MemoryStyle
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for MemoryStyle
[src]
impl Debug for MemoryStyle
[src]impl<'de> Deserialize<'de> for MemoryStyle
[src]
impl<'de> Deserialize<'de> for MemoryStyle
[src]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
impl Hash for MemoryStyle
[src]
impl Hash for MemoryStyle
[src]impl MemoryUsage for MemoryStyle
[src]
impl MemoryUsage for MemoryStyle
[src]fn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize
[src]
fn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize
[src]Returns the size of the referenced value in bytes. Read more
impl PartialEq<MemoryStyle> for MemoryStyle
[src]
impl PartialEq<MemoryStyle> for MemoryStyle
[src]fn eq(&self, other: &MemoryStyle) -> bool
[src]
fn eq(&self, other: &MemoryStyle) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &MemoryStyle) -> bool
[src]
fn ne(&self, other: &MemoryStyle) -> bool
[src]This method tests for !=
.
impl Serialize for MemoryStyle
[src]
impl Serialize for MemoryStyle
[src]impl Eq for MemoryStyle
[src]
impl StructuralEq for MemoryStyle
[src]
impl StructuralPartialEq for MemoryStyle
[src]
Auto Trait Implementations
impl RefUnwindSafe for MemoryStyle
impl Send for MemoryStyle
impl Sync for MemoryStyle
impl Unpin for MemoryStyle
impl UnwindSafe for MemoryStyle
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
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>::Metadata
Converts some archived metadata to the pointer metadata for itself.
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,