Encode to u8 since XOR isn't implemented for char (you can also implement it for char I guess ¯\_(ツ)_/¯)
xxxxxxxxxx
let my_char:u8 = 'C' as u8; //Just some character, ‘C’ is 0100 0011 in the ASCII table and flipping bit 5 would result in 0101 0011 which is 83 in decimal and ‘S’ in the ASCII table which is what we would expect to happen
let bit5flipper:u8 = '\x10' as u8;
let xored_char:u8 = my_char ^ bit5flipper;
https://www.reddit.com/r/rust/comments/6a3rum/binary_operators_on_character/