MCPcopy Create free account
hub / github.com/amber-lang/amber / into_fun_instance

Method into_fun_instance

src/utils/function_interface.rs:43–55  ·  view source on GitHub ↗
(
        self,
        args_global_ids: Vec<Option<usize>>,
        block: Block,
    )

Source from the content-addressed store, hash-verified

41 }
42
43 pub fn into_fun_instance(
44 self,
45 args_global_ids: Vec<Option<usize>>,
46 block: Block,
47 ) -> FunctionInstance {
48 FunctionInstance {
49 variant_id: 0,
50 args: self.args.iter().map(|arg| arg.kind.clone()).collect(),
51 args_global_ids,
52 returns: self.returns,
53 block,
54 }
55 }
56}

Callers 1

add_fun_instanceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected