Module sdset::duo[][src]

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

Difference

Represent the difference set operation that will be applied to two slices.

Intersection

Represent the intersection set operation that will be applied to two slices.

OpBuilder

Type used to make a set operation on two slices only.

SymmetricDifference

Represent the symmetric difference set operation that will be applied to two slices.

Union

Represent the union set operation that will be applied to two slices.