Function cast_vec
pub fn cast_vec<A, B>(input: Vec<A>) -> Vec<B> ⓘwhere
A: NoUninit,
B: AnyBitPattern,
Available on crate feature
dep_bytemuck
only.Expand description
As try_cast_vec
, but unwraps for you.
pub fn cast_vec<A, B>(input: Vec<A>) -> Vec<B> ⓘwhere
A: NoUninit,
B: AnyBitPattern,
dep_bytemuck
only.As try_cast_vec
, but unwraps for you.