MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / new

Method new

crates/wiggle/generate/src/codegen_settings.rs:24–40  ·  view source on GitHub ↗
(
        error_conf: &ErrorConf,
        async_: &AsyncConf,
        doc: &Document,
        wasmtime: bool,
        tracing: &TracingConf,
        mutable: bool,
    )

Source from the content-addressed store, hash-verified

22}
23impl CodegenSettings {
24 pub fn new(
25 error_conf: &ErrorConf,
26 async_: &AsyncConf,
27 doc: &Document,
28 wasmtime: bool,
29 tracing: &TracingConf,
30 mutable: bool,
31 ) -> Result<Self, Error> {
32 let errors = ErrorTransform::new(error_conf, doc)?;
33 Ok(Self {
34 errors,
35 async_: async_.clone(),
36 wasmtime,
37 tracing: tracing.clone(),
38 mutable,
39 })
40 }
41 pub fn get_async(&self, module: &Module, func: &InterfaceFunc) -> Asyncness {
42 self.async_.get(module.name.as_str(), func.name.as_str())
43 }

Callers

nothing calls this directly

Calls 8

OkFunction · 0.85
typenameMethod · 0.80
newFunction · 0.50
cloneMethod · 0.45
mapMethod · 0.45
iterMethod · 0.45
to_stringMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected