Fun with Rust bitwise operations! 🦀
Storing a weapons list in a single u16 number using bitwise AND/OR/XOR operations 👇
Rust playground code: cutt.ly/bmfqTJN
Gist: https://cutt.ly/4mfqSkR
Storing a weapons list in a single u16 number using bitwise AND/OR/XOR operations 👇
Rust playground code: cutt.ly/bmfqTJN
Gist: https://cutt.ly/4mfqSkR