A Rust bitfield implementation, copied from bindgen which is licensed under the BSD 3-Clause license.