Module lib::assert_set::assert_set_subset

source ·
Expand description

Assert a set is a subset of another.

§Example


let a = [1, 2];
let b = [1, 2, 3];
assert_set_subset!(&a, &b);

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

§Module macros