puns 0.1.5

Type punning proven at compile time: a safe alternative to transmute and to hand-written parsing of bytes
Documentation
1
2
3
4
5
//! The padding byte of `(u8, u16)` would de-initialize a byte of the source when the target is
//! written.
fn main() {
  let _ = puns::from_bytes_mut::<(u8, u16)>(&mut [0; 4]);
}