add comments

This commit is contained in:
Simon Gardling 2022-03-31 14:53:10 -04:00
parent dc53889dd5
commit 82f2263b1f

View File

@ -1,5 +1,7 @@
use std::collections::HashSet;
/// Generates hashmap (well really a vector of tuple of strings that are then
/// turned into a hashmap by phf)
#[allow(dead_code)]
pub fn compile_hashmap(data: Vec<String>) -> Vec<(String, String)> {
let start = std::time::Instant::now();
@ -42,6 +44,7 @@ pub fn compile_hashmap(data: Vec<String>) -> Vec<(String, String)> {
output
}
/// Returns a vector of all possible splitting combinations of a strings
#[allow(dead_code)]
fn all_possible_splits(
func: String, seen: &mut HashSet<(String, String)>,