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

Function keys_rev

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

Source from the content-addressed store, hash-verified

248
249 #[test]
250 fn keys_rev() {
251 let mut p: PrimaryMap<E, usize> = PrimaryMap::new();
252 p.push(12);
253 p.push(33);
254 let m = p.into_boxed_slice();
255
256 let mut i = 2;
257 for key in m.keys().rev() {
258 i -= 1;
259 assert_eq!(key.index(), i);
260 }
261 }
262
263 #[test]
264 fn values() {

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