Expand description
A memory block that belongs to the global memory pool, POOL
Implementations
sourceimpl<P> Box<P, Uninit>where
P: Pool,
P::Data: AsRef<[u8]>,
impl<P> Box<P, Uninit>where
P: Pool,
P::Data: AsRef<[u8]>,
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
sourceimpl<P> Ord for Box<P>where
P: Pool,
P::Data: Ord,
impl<P> Ord for Box<P>where
P: Pool,
P::Data: Ord,
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<P> PartialEq<Box<P, Init>> for Box<P>where
P: Pool,
P::Data: PartialEq,
impl<P> PartialEq<Box<P, Init>> for Box<P>where
P: Pool,
P::Data: PartialEq,
sourceimpl<P> PartialOrd<Box<P, Init>> for Box<P>where
P: Pool,
P::Data: PartialOrd,
impl<P> PartialOrd<Box<P, Init>> for Box<P>where
P: Pool,
P::Data: PartialOrd,
sourcefn partial_cmp(&self, rhs: &Box<P>) -> Option<Ordering>
fn partial_cmp(&self, rhs: &Box<P>) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<P> Eq for Box<P>where
P: Pool,
P::Data: Eq,
impl<P, S> Send for Box<P, S>where
P: Pool,
P::Data: Send,
impl<P: Pool> StableDeref for Box<P>
impl<P, S> Sync for Box<P, S>where
P: Pool,
P::Data: Sync,
Auto Trait Implementations
impl<POOL, STATE = Init> !RefUnwindSafe for Box<POOL, STATE>
impl<POOL, STATE> Unpin for Box<POOL, STATE>where
POOL: Unpin,
STATE: Unpin,
impl<POOL, STATE = Init> !UnwindSafe for Box<POOL, STATE>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more