Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IntegralPilot/rustc_codegen_jvm
/ choose_int_op
Function
choose_int_op
tests/binary/fn_pointers/src/main.rs:99–105 ·
view source on GitHub ↗
(addition: bool)
Source
from the content-addressed store, hash-verified
97
}
98
99
fn choose_int_op(addition: bool) -> fn(i32, i32) -> i32 {
100
if addition {
101
add
102
} else {
103
skew
104
}
105
}
106
107
fn add(a: i32, b: i32) -> i32 {
108
a + b
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected