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;