pub struct Box<'a, T: ?Sized>(/* private fields */);Expand description
Just a standard Box, more or less. The main difference is that its constructor is fallible instead of panicking.
It probably has fewer features than Rust’s version, but it should be possible to add or emulate those.
Implementations§
Source§impl<'a> Box<'a, [MaybeUninit<u8>]>
impl<'a> Box<'a, [MaybeUninit<u8>]>
Trait Implementations§
impl<'a, T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Box<'a, U>> for Box<'a, T>
impl<'a, T: ?Sized> Unpin for Box<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Box<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for Box<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for Box<'a, T>
impl<'a, T> Sync for Box<'a, T>
impl<'a, T> !UnwindSafe for Box<'a, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more