Trait fallible_collections::boxed::FallibleBox
source · pub trait FallibleBox<T> {
// Required method
fn try_new(t: T) -> Result<Self, TryReserveError>
where Self: Sized;
}
Expand description
trait to implement Fallible Box
Required Methods§
sourcefn try_new(t: T) -> Result<Self, TryReserveError>where
Self: Sized,
fn try_new(t: T) -> Result<Self, TryReserveError>where Self: Sized,
try creating a new box, returning a Result<Box