bytemuck::allocation

Function zeroed_rc_slice

Source
pub fn zeroed_rc_slice<T: Zeroable>(length: usize) -> Rc<[T]>
Available on crate feature extern_crate_alloc only.
Expand description

Allocates a Rc<[T]> with all contents being zeroed out.