[][src]Module bytemuck::allocation

Stuff to boost things in the alloc crate.

You must use the crate with the extern_crate_alloc feature for the content in this module to be compiled in!

Functions

cast_box

As try_cast_box, but unwraps for you.

cast_vec

As try_cast_vec, but unwraps for you.

try_cast_box

Attempts to cast the content type of a Box.

try_cast_vec

Attempts to cast the content type of a Vec.

try_zeroed_box

Allocates a Box<T> with all of the contents being zeroed out.

zeroed_box

As try_zeroed_box, but unwraps for you.