unsafe fn new_internal(store: &Store, binary: &[u8], name: Option<&str>) -> Result<Module> {
        let mut ret = Module::empty(store);
        ret.read_imports_and_exports(binary)?;

        let inner = Rc::get_mut(&mut ret.inner).unwrap();
        if let Some(name) = name {
            // Assign or override the module's name if supplied.
            inner.name = Some(name.to_string());
        }
        inner.compiled = Some(compile(store, binary, inner.name.as_deref())?);
        Ok(ret)
    }
/// Creates a new `Module` and compiles it without doing any validation.
Creates a new `Module` and compiles it without doing any validation.
Creates a new ` Module ` and compiles it without doing any validation .
unsafe fn new_internal(store: &Store, binary: &[u8], name: Option<&str>) -> Result<Module> {
        let mut ret = Module::empty(store);
        ret.read_imports_and_exports(binary)?;
        let inner = Rc::get_mut(&mut ret.inner).unwrap();
        if let Some(name) = name {
            // Assign or override the module's name if supplied.
            inner.name = Some(name.to_string());
        }
        inner.compiled = Some(compile(store, binary, inner.name.as_deref())?);
        Ok(ret)
    }
unsafe fn new_internal ( store : & Store , binary : & [ u8 ] , name : Option < & str > ) -> Result < Module > { let mut ret = Module :: empty ( store ) ; ret . read_imports_and_exports ( binary ) ? ; let inner = Rc :: get_mut ( & mut ret . inner ) . unwrap ( ) ; if let Some ( name ) = name { // Assign or override the module's name if supplied. inner . name = Some ( name . to_string ( ) ) ; } inner . compiled = Some ( compile ( store , binary , inner . name . as_deref ( ) ) ? ) ; Ok ( ret ) }
Creates a new `Module` and compiles it without doing any validation.
Creates a new ` Module ` and compiles it without doing any validation .
store
&Store
binary
&[u8]
name
Option<&str>
store
&Store
binary
&[u8]
name
Option<&str>