usize_cast
Very simply library that allow compile time checked cast from and to usize
/isize
.
On 64 bits platform it allows:
u16
,u32
,u64
intousize
i16
,u16
,i32
,u32
,i64
intoisize
u64
,u128
,i128
fromusize
i64
,i128
fromisize
On 32 bits platform it allows:
u16
,u32
intousize
i16
,u16
,i32
intoisize
u32
,u64
,i64
,u128
,i128
fromusize
i32
,i64
,i128
fromisize
On 16 bits platform it allows:
u16
intousize
i16
intoisize
u16
,u32
,i32
,u64
,i64
,u128
,i128
fromusize
i16
,i32
,i64
,i128
fromisize
Installation
[]
= "1.0.0"
Usage
use ;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;