bytemuck

Function cast

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.