[clufulltransmute]
( Extended, no-constraint type transmutation API, featuring safe checks and const-ready logic. )
!!! ATTENTION
- When converting types without checking the size of the data, you really need to understand what you are doing.
- You must understand the specifics of the platform you are using.
Library features
- Casting any type A to any type B with generic data without and with data dimension checking.
- Ability to use transmutation in constant functions in very old versions of rust.
- Possibility of delayed transmutation through contracts.
- Ability to work without the standard library.
Usage
Add this to your Cargo.toml:
[]
= "1.4.0"
and this to your source code:
use try_transmute;
use try_transmute_or_panic;
use transmute_unchecked;
Example
concat_arrays
Purpose: Combines two arrays of the same size [T; N] into a single fixed-length array [T; N*2].
use try_transmute_or_panic;
pub const
License
This project has a single license (LICENSE-APACHE-2.0).
(Denis Kotlyarov).