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