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
10
//! Where the analysis gives up on proving (the source is text, whose bytes go on to its end),
//! everything of the target is checked at run time: which a pointer cannot be.
#[path = "../support/relative.rs"]
#[allow(dead_code)]
mod relative;
use relative::Opt;

fn main() {
  let _ = puns::try_view_ref::<str, Opt<u32>>("text");
}