pub struct Box<POOL, STATE = Init>where
POOL: Pool,
STATE: 'static,{ /* private fields */ }
Expand description
A memory block that belongs to the global memory pool, POOL
Implementations§
source§impl<P> Box<P, Uninit>
impl<P> Box<P, Uninit>
sourcepub fn freeze(self) -> Box<P, Init>
👎Deprecated since 0.7.3: This can access uninitialized memory, use init(..)
instead (https://github.com/japaric/heapless/issues/212)
pub fn freeze(self) -> Box<P, Init>
init(..)
instead (https://github.com/japaric/heapless/issues/212)(DO NOT USE, SEE DEPRECATION) Freezes the contents of this memory block
See rust-lang/rust#58363 for details.
Trait Implementations§
source§impl<P> Ord for Box<P>
impl<P> Ord for Box<P>
source§impl<P> PartialOrd for Box<P>
impl<P> PartialOrd for Box<P>
impl<P> Eq for Box<P>
impl<P, S> Send for Box<P, S>
impl<P: Pool> StableDeref for Box<P>
impl<P, S> Sync for Box<P, S>
Auto Trait Implementations§
impl<POOL, STATE> Freeze for Box<POOL, STATE>
impl<POOL, STATE = Init> !RefUnwindSafe for Box<POOL, STATE>
impl<POOL, STATE> Unpin for Box<POOL, STATE>
impl<POOL, STATE = Init> !UnwindSafe for Box<POOL, STATE>
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