MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / sorted

Function sorted

crates/table/src/pointer_map.rs:371–373  ·  view source on GitHub ↗
(xs: &[T])

Source from the content-addressed store, hash-verified

369 }
370
371 fn sorted<T: Ord + Copy>(xs: &[T]) -> Vec<T> {
372 xs.iter().copied().sorted().collect()
373 }
374
375 fn assert_ptrs_are(map: &mut PointerMap, hash: RowHash, ptrs: &[RowPointer]) -> R {
376 let ptrs = sorted(ptrs);

Callers 5

assert_ptrs_areFunction · 0.70
compare_indexesFunction · 0.50
plot-bench.pyFile · 0.50
mainFunction · 0.50
check_tables.pyFile · 0.50

Calls 2

iterMethod · 0.65
collectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…