pub struct Box<P>where
P: BoxPool,{ /* private fields */ }Available on
arm_llsc, or 32-bit and (target_has_atomic=64 or crate feature portable-atomic), or 64-bit and (target_has_atomic=128 and crate feature nightly, or crate feature portable-atomic) only.Expand description
Like std::boxed::Box but managed by memory pool P rather than #[global_allocator]
Implementations§
Trait Implementations§
Source§impl<A> Ord for Box<A>
impl<A> Ord for Box<A>
Source§impl<A, B> PartialOrd<Box<B>> for Box<A>
impl<A, B> PartialOrd<Box<B>> for Box<A>
impl<A> Eq for Box<A>
impl<P> Send for Box<P>
impl<P> StableDeref for Box<P>where
P: BoxPool,
impl<P> Sync for Box<P>
Auto Trait Implementations§
impl<P> Freeze for Box<P>
impl<P> RefUnwindSafe for Box<P>
impl<P> Unpin for Box<P>
impl<P> UnwindSafe for Box<P>
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