[][src]Module sdset::duo

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.

DifferenceByKey

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

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.

OpBuilderByKey

Type used to make a set operation on two slices of different types.

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.