cast

Function cast 

Source
pub fn cast<A, B>(a: A) -> B
where A: NoUninit, B: AnyBitPattern,
Expand description

Cast A into B

ยงPanics

  • This is like try_cast, but will panic on a size mismatch.