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