pub fn vec_slices_into_sets<T: Ord>(
    vec: Vec<&[T]>
) -> Result<Vec<&Set<T>>, (Vec<&[T]>, Errors)>
Expand description

Construct a Vec of Sets 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();