bytemuck
1.20.0
In bytemuck::
checked
Function
bytemuck
::
checked
::
cast
Copy item path
source
·
[
−
]
pub fn cast<A:
NoUninit
, B:
CheckedBitPattern
>(a: A) -> B
Expand description
Cast
A
into
B
§
Panics
This is like
try_cast
, but will panic on a size mismatch.