Function bytemuck::cast[][src]

pub fn cast<A: Pod, B: Pod>(a: A) -> B
Expand description

Cast T into U

Panics

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