Function lazy_bytes_cast::bytes_cast_lazy
[−]
[src]
pub unsafe fn bytes_cast_lazy<T: Copy>(bytes: &[u8]) -> T
Unsafe version of bytes_cast
Note:
This function is able to convert only to types that implements marker::Copy
Parameters:
bytes
- slice of bytes to convert.
Result:
T
- Converted data.