pub fn new(store: &Store, ty: MemoryType) -> Memory {
        let (wasmtime_handle, wasmtime_export) =
            generate_memory_export(&ty).expect("generated memory");
        Memory {
            _store: store.clone(),
            ty,
            wasmtime_handle,
            wasmtime_export,
        }
    }
/// Creates a new WebAssembly memory given the configuration of `ty`.
///
/// The `store` argument is a general location for cache information, and
/// otherwise the memory will immediately be allocated according to the
/// type's configuration. All WebAssembly memory is initialized to zero.
Creates a new WebAssembly memory given the configuration of `ty`.
The `store` argument is a general location for cache information, and
otherwise the memory will immediately be allocated according to the
type's configuration. All WebAssembly memory is initialized to zero.
Creates a new WebAssembly memory given the configuration of ` ty ` . The ` store ` argument is a general location for cache information and otherwise the memory will immediately be allocated according to the type ' s configuration . All WebAssembly memory is initialized to zero .
pub fn new(store: &Store, ty: MemoryType) -> Memory {
        let (wasmtime_handle, wasmtime_export) =
            generate_memory_export(&ty).expect("generated memory");
        Memory {
            _store: store.clone(),
            ty,
            wasmtime_handle,
            wasmtime_export,
        }
    }
pub fn new ( store : & Store , ty : MemoryType ) -> Memory { let ( wasmtime_handle , wasmtime_export ) = generate_memory_export ( & ty ) . expect ( " " ) ; Memory { _store : store . clone ( ) , ty , wasmtime_handle , wasmtime_export , } }
Creates a new WebAssembly memory given the configuration of `ty`.
Creates a new WebAssembly memory given the configuration of ` ty ` .
store
&Store
ty
MemoryType
store
&Store
ty
MemoryType