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

Function keys

cranelift/entity/src/primary.rs:472–482  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

470 }
471 #[test]
472 fn keys() {
473 let mut m: PrimaryMap<E, usize> = PrimaryMap::new();
474 m.push(12);
475 m.push(33);
476
477 let mut i = 0;
478 for key in m.keys() {
479 assert_eq!(key.index(), i);
480 i += 1;
481 }
482 }
483
484 #[test]
485 fn keys_rev() {

Callers

nothing calls this directly

Calls 3

newFunction · 0.50
pushMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected