You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: c_api.rs
    path of file: ./repos/lucet/lucet-wasi/src
    
    the code of the file until where you have to start completion: use crate::WasiCtxBuilder;

use lucet_runtime::{DlModule, Module, Region};
use lucet_runtime_internals::c_api::{lucet_dl_module, lucet_error, lucet_instance, lucet_region};
use lucet_runtime_internals::instance::instance_handle_
    
pub unsafe extern "C" fn lucet_wasi_ctx_inherit_env(wasi_ctx: *mut lucet_wasi_ctx) -> lucet_error {
    assert_nonnull!(wasi_ctx);
    let mut b = Box::from_raw(wasi_ctx as *mut WasiCtxBuilder);
    *b = match b.inherit_env() {
        Ok(b) => b,
        Err(_) => return lucet_error::InvalidArgument,
    };
    Box::into_raw(b);
    lucet_error::Ok
}