pub fn from_box_bytes<T: FromBoxBytes + ?Sized>(input: BoxBytes) -> Box<T>
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.