typic 0.3.0

Type-safe transmutations between layout-compatible types.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Type-level information about the compilation target.

use crate::private::num::*;

/// The pointer width, in bytes, of the target platform.
#[cfg(target_pointer_width = "8")]
pub type PointerWidth = U1;
#[cfg(target_pointer_width = "16")]
pub type PointerWidth = U2;
#[cfg(target_pointer_width = "32")]
pub type PointerWidth = U4;
#[cfg(target_pointer_width = "64")]
pub type PointerWidth = U8;
#[cfg(target_pointer_width = "128")]
pub type PointerWidth = U16;