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

Method kind

cranelift/codegen/src/settings.rs:87–94  ·  view source on GitHub ↗

Gets the kind of setting.

(&self)

Source from the content-addressed store, hash-verified

85impl Value {
86 /// Gets the kind of setting.
87 pub fn kind(&self) -> SettingKind {
88 match &self.detail {
89 detail::Detail::Enum { .. } => SettingKind::Enum,
90 detail::Detail::Num => SettingKind::Num,
91 detail::Detail::Bool { .. } => SettingKind::Bool,
92 detail::Detail::Preset => unreachable!(),
93 }
94 }
95
96 /// Gets the enum value if the value is from an enum setting.
97 pub fn as_enum(&self) -> Option<&'static str> {

Callers 10

runFunction · 0.45
value_stringMethod · 0.45
rust_param_rawFunction · 0.45
generate_macro_inst_fnFunction · 0.45
isle_param_rawFunction · 0.45
isle_param_for_ctorFunction · 0.45
isle_constructorsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected