pub trait FromBox: Storage {
// Required method
fn from_box<T>(boxed: StdBox<T>) -> Self;
}Available on crate feature
alloc only.Expand description
A storage that can be constructed from boxed data.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.