MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / combine

Function combine

tests/binary/fn_pointers/src/main.rs:95–97  ·  view source on GitHub ↗
(f: fn(i32, i32) -> i32, a: i32, b: i32)

Source from the content-addressed store, hash-verified

93}
94
95fn combine(f: fn(i32, i32) -> i32, a: i32, b: i32) -> i32 {
96 f(a, b) + f(b, a)
97}
98
99fn choose_int_op(addition: bool) -> fn(i32, i32) -> i32 {
100 if addition {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected