Enum wasmer_vm::MemoryStyle[][src]

pub enum MemoryStyle {
    Dynamic {
        offset_guard_size: u64,
    },
    Static {
        bound: Pages,
        offset_guard_size: u64,
    },
}

Implementation styles for WebAssembly linear memory.

Variants

Dynamic

The actual memory can be resized and moved.

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.

Static

Address space is allocated up front.

Fields of Static

bound: Pages

The number of mapped and unmapped pages.

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.

Implementations

impl MemoryStyle[src]

pub fn offset_guard_size(&self) -> u64[src]

Returns the offset-guard size

Trait Implementations

impl Clone for MemoryStyle[src]

impl Debug for MemoryStyle[src]

impl<'de> Deserialize<'de> for MemoryStyle[src]

impl Eq for MemoryStyle[src]

impl Hash for MemoryStyle[src]

impl PartialEq<MemoryStyle> for MemoryStyle[src]

impl Serialize for MemoryStyle[src]

impl StructuralEq for MemoryStyle[src]

impl StructuralPartialEq for MemoryStyle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.