pub fn grow(&self, delta: u32) -> Result<u32> {
        match self.wasmtime_export {
            wasmtime_runtime::Export::Memory { definition, .. } => {
                let definition = unsafe { &(*definition) };
                let index = self.wasmtime_handle.memory_index(definition);
                self.wasmtime_handle
                    .clone()
                    .memory_grow(index, delta)
                    .ok_or_else(|| anyhow!("failed to grow memory"))
            }
            _ => panic!("memory definition not found"),
        }
    }
/// Grows this WebAssembly memory by `delta` pages.
///
/// This will attempt to add `delta` more pages of memory on to the end of
/// this `Memory` instance. If successful this may relocate the memory and
/// cause [`Memory::data_ptr`] to return a new value. Additionally previous
/// slices into this memory may no longer be valid.
///
/// On success returns the number of pages this memory previously had
/// before the growth succeeded.
///
/// # Errors
///
/// Returns an error if memory could not be grown, for example if it exceeds
/// the maximum limits of this memory.
Grows this WebAssembly memory by `delta` pages.
This will attempt to add `delta` more pages of memory on to the end of
this `Memory` instance. If successful this may relocate the memory and
cause [`Memory::data_ptr`] to return a new value. Additionally previous
slices into this memory may no longer be valid.

On success returns the number of pages this memory previously had
before the growth succeeded.
Grows this WebAssembly memory by ` delta ` pages . This will attempt to add ` delta ` more pages of memory on to the end of this ` Memory ` instance . If successful this may relocate the memory and cause [ ` Memory :: data_ptr ` ] to return a new value . Additionally previous slices into this memory may no longer be valid . On success returns the number of pages this memory previously had before the growth succeeded .
pub fn grow(&self, delta: u32) -> Result<u32> {
        match self.wasmtime_export {
            wasmtime_runtime::Export::Memory { definition, .. } => {
                let definition = unsafe { &(*definition) };
                let index = self.wasmtime_handle.memory_index(definition);
                self.wasmtime_handle
                    .clone()
                    .memory_grow(index, delta)
                    .ok_or_else(|| anyhow!("failed to grow memory"))
            }
            _ => panic!("memory definition not found"),
        }
    }
pub fn grow ( & self , delta : u32 ) -> Result < u32 > { match self . wasmtime_export { wasmtime_runtime :: Export :: Memory { definition , .. } => { let definition = unsafe { & ( * definition ) } ; let index = self . wasmtime_handle . memory_index ( definition ) ; self . wasmtime_handle . clone ( ) . memory_grow ( index , delta ) . ok_or_else ( | | anyhow ! ( " " ) ) } _ => panic ! ( " " ) , } }
Grows this WebAssembly memory by `delta` pages.
Grows this WebAssembly memory by ` delta ` pages .
&self
delta
u32
&self
delta
u32
errors
Returns an error if memory could not be grown, for example if it exceeds
the maximum limits of this memory.
Returns an error if memory could not be grown for example if it exceeds the maximum limits of this memory .