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

Function keys

cranelift/entity/src/boxed_slice.rs:236–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234 }
235 #[test]
236 fn keys() {
237 let mut p: PrimaryMap<E, usize> = PrimaryMap::new();
238 p.push(12);
239 p.push(33);
240 let m = p.into_boxed_slice();
241
242 let mut i = 0;
243 for key in m.keys() {
244 assert_eq!(key.index(), i);
245 i += 1;
246 }
247 }
248
249 #[test]
250 fn keys_rev() {

Callers

nothing calls this directly

Calls 4

newFunction · 0.50
pushMethod · 0.45
into_boxed_sliceMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected