pub fn invert(c: char) -> char {
    match c {
        '<' => '>',
        '>' => '<',
        '&' => '|',
        '*' => '/',
        '(' => ')',
        ')' => '(',
        '+' => '-',
        '-' => '+',
        ';' => ':',
        ':' => ';',
        '\\' => '/',
        '/' => '\\',
        ',' => '.',
        '.' => ',',
        '\'' => '"',
        '"' => '\'',
        '[' => ']',
        ']' => '[',
        '{' => '}',
        '}' => '{',
        '!' => '?',
        '?' => '!',
        a => if a.is_lowercase() {
            a.to_uppercase().next().unwrap_or('?')
        } else {
            a.to_lowercase().next().unwrap_or('?')
        },
    }
}
/// "Invert" a character, meaning that it gets swapped with it's counterpart, if no counterpart
/// exists, swap the case of the character.
"Invert" a character, meaning that it gets swapped with it's counterpart, if no counterpart
exists, swap the case of the character.
" Invert " a character meaning that it gets swapped with it ' s counterpart if no counterpart exists swap the case of the character .
pub fn invert(c: char) -> char {
    match c {
        '<' => '>',
        '>' => '<',
        '&' => '|',
        '*' => '/',
        '(' => ')',
        ')' => '(',
        '+' => '-',
        '-' => '+',
        ';' => ':',
        ':' => ';',
        '\\' => '/',
        '/' => '\\',
        ',' => '.',
        '.' => ',',
        '\'' => '"',
        '"' => '\'',
        '[' => ']',
        ']' => '[',
        '{' => '}',
        '}' => '{',
        '!' => '?',
        '?' => '!',
        a => if a.is_lowercase() {
            a.to_uppercase().next().unwrap_or('?')
        } else {
            a.to_lowercase().next().unwrap_or('?')
        },
    }
}
pub fn invert ( c : char ) -> char { match c { '<' => '>' , '>' => '<' , '&' => '|' , '*' => '/' , '(' => ')' , ')' => '(' , '+' => '-' , '-' => '+' , ';' => ':' , ':' => ';' , '\\' => '/' , '/' => '\\' , ',' => '.' , '.' => ',' , '\'' => '"' , '"' => '\'' , '[' => ']' , ']' => '[' , '{' => '}' , '}' => '{' , '!' => '?' , '?' => '!' , a => if a . is_lowercase ( ) { a . to_uppercase ( ) . next ( ) . unwrap_or ( '?' ) } else { a . to_lowercase ( ) . next ( ) . unwrap_or ( '?' ) } , } }
"Invert" a character, meaning that it gets swapped with it's counterpart, if no counterpart
exists, swap the case of the character.
" Invert " a character meaning that it gets swapped with it ' s counterpart if no counterpart exists swap the case of the character .
c
char
c
char