explicit_cast 1.0.0

A crate for explicit widening, truncating, and sign casting of primitive integers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
# `explicit_cast`
A crate for explicitly widening, truncating, and sign casting integers.  
This crate is very simple, but the functionality it provides is universal, as such, it is distributed under `Apache-2.0 OR MIT`.

## Usage
```rust
use explict_cast::prelude::*;

let my_value: u8 = u16::MAX.truncate();
let next: i16 = my_value.widen().sign_cast();

assert_eq!(next, 0xffi16);
```