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

Function optional_flag_with_default

src/commands/objdump.rs:78–84  ·  view source on GitHub ↗
(flag: Option<Option<bool>>, default: bool)

Source from the content-addressed store, hash-verified

76}
77
78fn optional_flag_with_default(flag: Option<Option<bool>>, default: bool) -> bool {
79 match flag {
80 None => default,
81 Some(None) => true,
82 Some(Some(val)) => val,
83 }
84}
85
86impl ObjdumpCommand {
87 fn addrmap(&self) -> bool {

Callers 5

addrmapMethod · 0.70
trapsMethod · 0.70
stack_mapsMethod · 0.70
exception_tablesMethod · 0.70
frame_tablesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected