devela::_dep::bytemuck

Function cast_box

pub fn cast_box<A, B>(input: Box<A>) -> Box<B>
where A: NoUninit, B: AnyBitPattern,
Available on crate feature dep_bytemuck only.
Expand description

As try_cast_box, but unwraps for you.