pub fn from_code(
        code: &[u8],
        backend: Backend<A, S, Q>,
        options: InstanceOptions,
        memory_limit: Option<Size>,
    ) -> VmResult<Self> {
        let module = compile(code, memory_limit)?;
        Instance::from_module(&module, backend, options.gas_limit, options.print_debug)
    }
/// This is the only Instance constructor that can be called from outside of cosmwasm-vm,
/// e.g. in test code that needs a customized variant of cosmwasm_vm::testing::mock_instance*.
This is the only Instance constructor that can be called from outside of cosmwasm-vm,
e.g. in test code that needs a customized variant of cosmwasm_vm::testing::mock_instance*.
This is the only Instance constructor that can be called from outside of cosmwasm - vm e . g . in test code that needs a customized variant of cosmwasm_vm :: testing :: mock_instance * .
pub fn from_code(
        code: &[u8],
        backend: Backend<A, S, Q>,
        options: InstanceOptions,
        memory_limit: Option<Size>,
    ) -> VmResult<Self> {
        let module = compile(code, memory_limit)?;
        Instance::from_module(&module, backend, options.gas_limit, options.print_debug)
    }
pub fn from_code ( code : & [ u8 ] , backend : Backend < A , S , Q > , options : InstanceOptions , memory_limit : Option < Size > , ) -> VmResult < Self > { let module = compile ( code , memory_limit ) ? ; Instance :: from_module ( & module , backend , options . gas_limit , options . print_debug ) }
This is the only Instance constructor that can be called from outside of cosmwasm-vm,
e.g.
This is the only Instance constructor that can be called from outside of cosmwasm - vm e . g .
code
&[u8]
backend
Backend<A, S, Q>
options
InstanceOptions
memory_limit
Option<Size>