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
6
7
8
9
//! `view_ref` needs a pointer for a pointer: bytes are not one.
#[path = "../support/relative.rs"]
#[allow(dead_code)]
mod relative;
use relative::One;

fn main() {
  let _: &One<u32> = puns::view_ref(&[4u8, 0, 0, 0]);
}