You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: c01p04.rs
    path of file: ./repos/cracking-the-coding-interview-rust/src/bin
    
    the code of the file until where you have to start completion: use std::collections::HashMap;
fn count_chars(s: &str) -> HashMap<char, i32> {
    let mut characters: HashMap<char, i32> = HashMap::new();
    for c in s.chars() {
        let x = characters.entry(c).or_insert(0);
        *x += 1;
    }
    characters
}

fn palidrome_permutations(s: &str) -> bool {
    let normalized_s = s
        .to_lowercase()
        .split_whitespace()
        .fold(String::new(), |acc, s| acc + s);
    let character_counts = count_chars(&normalized_s);
    let is_even = normalized_s.len() % 2 == 0;
    let mut has_odd = false;

    for value in cha
    
fn palidrome_permutations(s: &str) -> bool {
    let normalized_s = s
        .to_lowercase()
        .split_whitespace()
        .fold(String::new(), |acc, s| acc + s);
    let character_counts = count_chars(&normalized_s);
    let is_even = normalized_s.len() % 2 == 0;
    let mut has_odd = false;

    for value in character_counts.values() {
        dbg!(format!(
            "is_even={} has_odd={} value={}",
            is_even, has_odd, value
        ));
        if value % 2 != 0 {
            if is_even || has_odd {
                return false;
            } else {
                has_odd = true;
            }
        }
    }
    true
}