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

Method as_bool

cranelift/codegen/src/settings.rs:110–115  ·  view source on GitHub ↗

Gets the boolean value if the value is from a boolean setting.

(&self)

Source from the content-addressed store, hash-verified

108
109 /// Gets the boolean value if the value is from a boolean setting.
110 pub fn as_bool(&self) -> Option<bool> {
111 match &self.detail {
112 detail::Detail::Bool { bit } => Some(self.value & (1 << bit) != 0),
113 _ => None,
114 }
115 }
116
117 /// Builds a string from the current value
118 pub fn value_string(&self) -> String {

Callers 9

is_isa_compatibleFunction · 0.45
supports_simdMethod · 0.45
use_btiFunction · 0.45
value_stringMethod · 0.45
fmtMethod · 0.45
canonicalize_nansMethod · 0.45
to_capstoneMethod · 0.45
newMethod · 0.45
to_flag_valueFunction · 0.45

Calls

no outgoing calls

Tested by 1

is_isa_compatibleFunction · 0.36