Module lib::assert_set::assert_set_joint

source ·
Expand description

Assert a set is joint with another.

Pseudocode:
(collection1 into set) ⋂ (collection2 into set)

§Example

use assertables::*;
let a = [1, 2];
let b = [2, 3];
assert_set_joint!(&a, &b);

This implementation uses std::collections::BTreeSet to count items and sort them.

§Module macros