[][src]Struct walrus::Memory

pub struct Memory {
    pub shared: bool,
    pub initial: u32,
    pub maximum: Option<u32>,
    pub import: Option<ImportId>,
    pub data_segments: HashSet<Id<Data>, BuildIdHasher>,
    // some fields omitted
}

A memory in the wasm.

Fields

shared: bool

Is this memory shared?

initial: u32

The initial page size for this memory.

maximum: Option<u32>

The maximum page size for this memory.

import: Option<ImportId>

Whether or not this memory is imported, and if so from where.

data_segments: HashSet<Id<Data>, BuildIdHasher>

Active data segments that will be used to initialize this memory.

Methods

impl Memory[src]

pub fn id(&self) -> MemoryId[src]

Return the id of this memory

Trait Implementations

impl Debug for Memory[src]

Auto Trait Implementations

impl Unpin for Memory

impl Sync for Memory

impl Send for Memory

impl UnwindSafe for Memory

impl RefUnwindSafe for Memory

Blanket Implementations

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

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

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.

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

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

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