Expand description
Contains the types to make set operations on two slices and only two.
Examples
use sdset::duo::OpBuilder;
use sdset::{SetOperation, Set, SetBuf};
let a = Set::new(&[1, 2, 4, 6, 7])?;
let b = Set::new(&[2, 3, 4, 5, 6, 7])?;
let op = OpBuilder::new(a, b).union();
let res: SetBuf<i32> = op.into_set_buf();
assert_eq!(&res[..], &[1, 2, 3, 4, 5, 6, 7]);
Structs
Represent the difference set operation that will be applied to two slices.
Represent the difference set operation that will be applied to two slices of different types.
Represent the intersection set operation that will be applied to two slices.
Type used to make a set operation on two slices only.
Type used to make a set operation on two slices of different types.
Represent the symmetric difference set operation that will be applied to two slices.
Represent the union set operation that will be applied to two slices.