devela::_dep::bytemuck

Function box_bytes_of

pub fn box_bytes_of<T>(input: Box<T>) -> BoxBytes
where T: BoxBytesOf + ?Sized,
Available on crate feature dep_bytemuck only.
Expand description

Re-interprets Box<T> as BoxBytes.

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