Module lib::assert_set::assert_set_disjoint
source · Expand description
Assert a set is disjoint with another.
Pseudocode:
(collection1 into set) ⨃ (collection2 into set)
§Example
use assertables::*;
let a = [1, 2];
let b = [3, 4];
assert_set_disjoint!(&a, &b);This implementation uses std::collections::BTreeSet to count items and sort them.