fn ensure_no_internal_memory(&self) -> Result<(), &'static str> {
		let module = self
			.module
			.as_ref()
			.expect("On entry to the function `module` can't be None; qed");
		if module
			.memory_section()
			.map_or(false, |ms| ms.entries().len() > 0)
		{
			return Err("module declares internal memory");
		}
		Ok(())
	}
/// Ensures that module doesn't declare internal memories.
///
/// In this runtime we only allow wasm module to import memory from the environment.
/// Memory section contains declarations of internal linear memories, so if we find one
/// we reject such a module.
Ensures that module doesn't declare internal memories.
In this runtime we only allow wasm module to import memory from the environment.
Memory section contains declarations of internal linear memories, so if we find one
we reject such a module.
Ensures that module doesn ' t declare internal memories . In this runtime we only allow wasm module to import memory from the environment . Memory section contains declarations of internal linear memories so if we find one we reject such a module .
fn ensure_no_internal_memory(&self) -> Result<(), &'static str> {
		let module = self
			.module
			.as_ref()
			.expect("On entry to the function `module` can't be None; qed");
		if module
			.memory_section()
			.map_or(false, |ms| ms.entries().len() > 0)
		{
			return Err("module declares internal memory");
		}
		Ok(())
	}
fn ensure_no_internal_memory ( & self ) -> Result < ( ) , & ' static str > { let module = self . module . as_ref ( ) . expect ( " " ) ; if module . memory_section ( ) . map_or ( false , | ms | ms . entries ( ) . len ( ) > 0 ) { return Err ( " " ) ; } Ok ( ( ) ) }
Ensures that module doesn't declare internal memories.
Ensures that module doesn ' t declare internal memories .
&self
&self