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

Function keys_rev

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

Source from the content-addressed store, hash-verified

483
484 #[test]
485 fn keys_rev() {
486 let mut m: PrimaryMap<E, usize> = PrimaryMap::new();
487 m.push(12);
488 m.push(33);
489
490 let mut i = 2;
491 for key in m.keys().rev() {
492 i -= 1;
493 assert_eq!(key.index(), i);
494 }
495 }
496
497 #[test]
498 fn values() {

Callers

nothing calls this directly

Calls 3

newFunction · 0.50
pushMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected