Function pulp::cast

source ยท
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.