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

Function sorted

crates/data-structures/src/small_map.rs:303–307  ·  view source on GitHub ↗

Collects `iter` into a sorted `Vec `.

(iter: impl Iterator<Item = T>)

Source from the content-addressed store, hash-verified

301
302 /// Collects `iter` into a sorted `Vec<T>`.
303 fn sorted<T: Ord>(iter: impl Iterator<Item = T>) -> Vec<T> {
304 let mut vec: Vec<T> = iter.collect();
305 vec.sort();
306 vec
307 }
308
309 /// Tests insertion, retrieval, and deletion together.
310 fn insert_get_remove_inner<const N: usize, const M: usize>(entries: &[(K, V)]) {

Callers

nothing calls this directly

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…