bytemuck::allocation

Function box_bytes_of

Source
pub fn box_bytes_of<T: BoxBytesOf + ?Sized>(input: Box<T>) -> BoxBytes
Expand description

Re-interprets Box<T> as BoxBytes.

T must be either Sized and NoUninit, [U] where U: NoUninit, or str.