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

Method add_bool

cranelift/codegen/meta/src/cdsl/settings.rs:191–205  ·  view source on GitHub ↗
(
        &mut self,
        name: &'static str,
        description: &'static str,
        comment: &'static str,
        default: bool,
    )

Source from the content-addressed store, hash-verified

189 }
190
191 pub fn add_bool(
192 &mut self,
193 name: &'static str,
194 description: &'static str,
195 comment: &'static str,
196 default: bool,
197 ) -> BoolSettingIndex {
198 self.add_setting(
199 name,
200 description,
201 comment,
202 ProtoSpecificSetting::Bool(default),
203 );
204 BoolSettingIndex(self.settings.len() - 1)
205 }
206
207 pub fn add_enum(
208 &mut self,

Callers 6

defineFunction · 0.80
defineFunction · 0.80
defineFunction · 0.80
defineFunction · 0.80
defineFunction · 0.80
defineFunction · 0.80

Calls 3

BoolSettingIndexClass · 0.85
add_settingMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected