Function from_box_bytes
pub fn from_box_bytes<T>(input: BoxBytes) -> Box<T>where
T: FromBoxBytes + ?Sized,
Available on crate feature
dep_bytemuck
only.Expand description
Re-interprets BoxBytes
as Box<T>
.
T
must be either Sized
+ AnyBitPattern
, or
[U]
where U: AnyBitPattern
.
ยงPanics
This is try_from_box_bytes
but will panic on error and the input will be
dropped.