bytemuck
1.19.0
cast
Sections
Panics
In crate bytemuck
bytemuck
Function
cast
Copy item path
Source
pub fn cast<A:
NoUninit
, B:
AnyBitPattern
>(a: A) -> B
Expand description
Cast
A
into
B
ยง
Panics
This is like
try_cast
, but will panic on a size mismatch.