pub fn into_script(self) -> CompiledScript {
        let mut inner = self.into_inner();
        let main = inner.function_defs.remove(0);
        CompiledScript(CompiledScriptMut {
            module_handles: inner.module_handles,
            struct_handles: inner.struct_handles,
            function_handles: inner.function_handles,

            type_signatures: inner.type_signatures,
            function_signatures: inner.function_signatures,
            locals_signatures: inner.locals_signatures,

            string_pool: inner.string_pool,
            byte_array_pool: inner.byte_array_pool,
            address_pool: inner.address_pool,

            main,
        })
    }
/// This function should only be called on an instance of CompiledModule obtained by invoking
/// into_module on some instance of CompiledScript. This function is the inverse of
/// into_module, i.e., script.into_module().into_script() == script.
This function should only be called on an instance of CompiledModule obtained by invoking
into_module on some instance of CompiledScript. This function is the inverse of
into_module, i.e., script.into_module().into_script() == script.
This function should only be called on an instance of CompiledModule obtained by invoking into_module on some instance of CompiledScript . This function is the inverse of into_module i . e . script . into_module () . into_script () == script .
pub fn into_script(self) -> CompiledScript {
        let mut inner = self.into_inner();
        let main = inner.function_defs.remove(0);
        CompiledScript(CompiledScriptMut {
            module_handles: inner.module_handles,
            struct_handles: inner.struct_handles,
            function_handles: inner.function_handles,
            type_signatures: inner.type_signatures,
            function_signatures: inner.function_signatures,
            locals_signatures: inner.locals_signatures,
            string_pool: inner.string_pool,
            byte_array_pool: inner.byte_array_pool,
            address_pool: inner.address_pool,
            main,
        })
    }
pub fn into_script ( self ) -> CompiledScript { let mut inner = self . into_inner ( ) ; let main = inner . function_defs . remove ( 0 ) ; CompiledScript ( CompiledScriptMut { module_handles : inner . module_handles , struct_handles : inner . struct_handles , function_handles : inner . function_handles , type_signatures : inner . type_signatures , function_signatures : inner . function_signatures , locals_signatures : inner . locals_signatures , string_pool : inner . string_pool , byte_array_pool : inner . byte_array_pool , address_pool : inner . address_pool , main , } ) }
This function should only be called on an instance of CompiledModule obtained by invoking
into_module on some instance of CompiledScript.
This function should only be called on an instance of CompiledModule obtained by invoking into_module on some instance of CompiledScript .
self