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

Function ensure_unique

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

Source from the content-addressed store, hash-verified

393 }
394
395 fn ensure_unique<T: Eq + Hash>(xs: &[T]) -> R {
396 if !xs.iter().all_unique() {
397 return Err(TestCaseError::reject("all elements must be unique"));
398 }
399 Ok(())
400 }
401
402 proptest! {
403 #[test]

Callers

nothing calls this directly

Calls 3

iterMethod · 0.65
ErrFunction · 0.50
OkFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…