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

Function full_leaf

cranelift/bforest/src/map.rs:1020–1026  ·  view source on GitHub ↗
(f: &mut MapForest<u32, f32>)

Source from the content-addressed store, hash-verified

1018 let f = &mut MapForest::<u32, f32>::new();
1019
1020 fn full_leaf(f: &mut MapForest<u32, f32>) -> Map<u32, f32> {
1021 let mut m = Map::new();
1022 for n in 1..8 {
1023 m.insert(n * 10, n as f32 * 1.1, f, &());
1024 }
1025 m
1026 }
1027
1028 // Insert at front of leaf.
1029 let mut m = full_leaf(f);

Callers 1

split_level0_leafFunction · 0.85

Calls 2

newFunction · 0.50
insertMethod · 0.45

Tested by 1

split_level0_leafFunction · 0.68