MCPcopy Create free account
hub / github.com/argumentcomputer/ix / take

Method take

crates/kernel/src/shard.rs:1482–1490  ·  view source on GitHub ↗
(&mut self, n: usize)

Source from the content-addressed store, hash-verified

1480 leaf_ids.sort_unstable();
1481 let mut shard_ids: Vec<u32> = shards.iter().map(|s| s.id).collect();
1482 shard_ids.sort_unstable();
1483 if leaf_ids != shard_ids {
1484 return Err(format!(
1485 "bisection tree leaves ({} ids) do not match the manifest's shard \
1486 id set ({num_shards} shards)",
1487 leaf_ids.len()
1488 ));
1489 }
1490 }
1491 Ok(ShardManifest {
1492 num_shards: num_shards as u32,
1493 shards,

Callers 15

mainFunction · 0.45
check_inputs_closedFunction · 0.45
mergeFunction · 0.45
rec_alpha_eq_with_permFunction · 0.45
rhs_alpha_eq_with_permFunction · 0.45
outer_telescope_alpha_eqFunction · 0.45
permute_rec_app_argsFunction · 0.45
generate_aux_patchesFunction · 0.45
source_minor_typeFunction · 0.45
compile_env_with_optionsFunction · 0.45
newMethod · 0.45
reorder_flat_by_layoutFunction · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected