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

Method call_take_char

crates/component-macro/tests/expanded/char.rs:346–354  ·  view source on GitHub ↗

A function that accepts a character

(
                        &self,
                        mut store: S,
                        arg0: char,
                    )

Source from the content-addressed store, hash-verified

344 }
345 /// A function that accepts a character
346 pub fn call_take_char<S: wasmtime::AsContextMut>(
347 &self,
348 mut store: S,
349 arg0: char,
350 ) -> wasmtime::Result<()> {
351 let callee = self.func_take_char();
352 let () = callee.call(store.as_context_mut(), (arg0,))?;
353 Ok(())
354 }
355 pub fn func_return_char(
356 &self,
357 ) -> wasmtime::component::TypedFunc<(), (char,)> {

Callers

nothing calls this directly

Calls 4

OkFunction · 0.85
func_take_charMethod · 0.45
callMethod · 0.45
as_context_mutMethod · 0.45

Tested by

no test coverage detected