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§

source

fn try_new(t: T) -> Result<Self, TryReserveError>where Self: Sized,

try creating a new box, returning a Result<Box, TryReserveError> if allocation failed

Implementations on Foreign Types§

source§

impl<T> FallibleBox<T> for Box<T>

Implementors§