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

Function gen_hash_key

cranelift/codegen/meta/src/gen_settings.rs:386–393  ·  view source on GitHub ↗
(fmt: &mut Formatter)

Source from the content-addressed store, hash-verified

384}
385
386fn gen_hash_key(fmt: &mut Formatter) {
387 fmt.add_block("impl Flags", |fmt| {
388 fmt.doc_comment("Get the flag values as raw bytes for hashing.");
389 fmt.add_block("pub fn hash_key(&self) -> &[u8]", |fmt| {
390 fmtln!(fmt, "&self.bytes");
391 });
392 });
393}
394
395fn gen_group(group: &SettingGroup, parent: ParentGroup, fmt: &mut Formatter) {
396 // Generate struct.

Callers 1

gen_groupFunction · 0.85

Calls 2

doc_commentMethod · 0.80
add_blockMethod · 0.45

Tested by

no test coverage detected