Function sdset::set::vec_slices_into_sets
source · Expand description
Construct a Vec
of Set
s only if all slices are sorted and deduplicated.
Otherwise returns the Vec
given in parameter along with a Vec
containing
the possible conversion errors of each slice.
Examples
use sdset::set::vec_slices_into_sets;
let a = &[1, 2, 3, 4][..];
let b = &[1, 4, 6, 7];
let slices = vec![a, b];
let sets = vec_slices_into_sets(slices).unwrap();