pub fn cast<T: NoUninit, U: AnyBitPattern>(value: T) -> U
Expand description
Safe transmute function.
This function asserts at compile time that the two types have the same size.
pub fn cast<T: NoUninit, U: AnyBitPattern>(value: T) -> U
Safe transmute function.
This function asserts at compile time that the two types have the same size.