• Home
  • Raw
  • Download

Lines Matching refs:HashSet

6 use hashbrown::{HashMap, HashSet};
315 static ref SET_EMPTY: HashSet<char> = HashSet::new();
316 static ref SET: HashSet<char> = {
317 let mut s = HashSet::new();
386 let set_seq = SET_VEC_EMPTY.clone().into_iter().collect::<HashSet<_>>(); in set_seq_par_equivalence_collect_empty()
390 .collect::<HashSet<_>>(); in set_seq_par_equivalence_collect_empty()
400 let set_seq = SET_VEC.clone().into_iter().collect::<HashSet<_>>(); in set_seq_par_equivalence_collect()
401 let set_par = SET_VEC.clone().into_par_iter().collect::<HashSet<_>>(); in set_seq_par_equivalence_collect()
409 static ref SET_EXISTING_EMPTY: HashSet<char> = HashSet::new();
410 static ref SET_EXISTING: HashSet<char> = {
411 let mut s = HashSet::new();
422 let expected = HashSet::new(); in set_seq_par_equivalence_existing_empty_extend_empty()
434 let expected = SET_EXTENSION.iter().cloned().collect::<HashSet<_>>(); in set_seq_par_equivalence_existing_empty_extend()
469 static ref SET_A: HashSet<char> = ['a', 'b', 'c', 'd'].iter().cloned().collect();
470 static ref SET_B: HashSet<char> = ['a', 'b', 'e', 'f'].iter().cloned().collect();
471 static ref SET_DIFF_AB: HashSet<char> = ['c', 'd'].iter().cloned().collect();
472 static ref SET_DIFF_BA: HashSet<char> = ['e', 'f'].iter().cloned().collect();
473 static ref SET_SYMM_DIFF_AB: HashSet<char> = ['c', 'd', 'e', 'f'].iter().cloned().collect();
474 static ref SET_INTERSECTION_AB: HashSet<char> = ['a', 'b'].iter().cloned().collect();
475 static ref SET_UNION_AB: HashSet<char> =
481 let diff_ab_seq = SET_A.difference(&*SET_B).cloned().collect::<HashSet<_>>(); in set_seq_par_equivalence_difference()
485 .collect::<HashSet<_>>(); in set_seq_par_equivalence_difference()
489 let diff_ba_seq = SET_B.difference(&*SET_A).cloned().collect::<HashSet<_>>(); in set_seq_par_equivalence_difference()
493 .collect::<HashSet<_>>(); in set_seq_par_equivalence_difference()
503 .collect::<HashSet<_>>(); in set_seq_par_equivalence_symmetric_difference()
507 .collect::<HashSet<_>>(); in set_seq_par_equivalence_symmetric_difference()
514 let intersection_ab_seq = SET_A.intersection(&*SET_B).cloned().collect::<HashSet<_>>(); in set_seq_par_equivalence_intersection()
518 .collect::<HashSet<_>>(); in set_seq_par_equivalence_intersection()
529 let union_ab_seq = SET_A.union(&*SET_B).cloned().collect::<HashSet<_>>(); in set_seq_par_equivalence_union()
530 let union_ab_par = SET_A.par_union(&*SET_B).cloned().collect::<HashSet<_>>(); in set_seq_par_equivalence_union()