| Crates.io | negatable-set |
| lib.rs | negatable-set |
| version | 0.1.0 |
| created_at | 2020-11-02 20:02:49.247441+00 |
| updated_at | 2020-11-02 20:02:49.247441+00 |
| description | Wrapper for sets that allows full boolean operations including negation |
| homepage | https://github.com/rklaehn |
| repository | https://github.com/rklaehn/negatable-set |
| max_upload_size | |
| id | 308036 |
| size | 33,342 |
use maplit::btreeset;
use negatable_set::NegatableSet;
use std::collections::BTreeSet;
type Test = NegatableSet<BTreeSet<u64>>;
fn main() {
let a = Test::from(btreeset! { 3,4,5 });
let b = Test::from(btreeset! { 1,2,3 });
let c = !&b;
let d = &a | &c;
println!("{:?} {:?} {:?} {:?}", a, b, c, d);
}