pub struct Box<POOL, STATE = Init> where
POOL: Pool,
STATE: 'static, { /* fields omitted */ }
Expand description
A memory block that belongs to the global memory pool, POOL
Initializes this memory block
👎 Deprecated since 0.7.3:
This can access uninitialized memory, use 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.
Forgets the contents of this memory block without running its destructor.
Note that this this does not return the memory block to the pool. The
block can be reused, or returned to the pool by dropping it.
fn as_mut(&mut self) -> &mut [T]
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Mutably dereferences the value.
Formats the value using the given formatter. Read more
impl<P, S> Drop for Box<P, S> where
P: Pool,
S: 'static,
Executes the destructor for this type. Read more
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
Restrict a value to a certain interval. Read more
fn eq(&self, rhs: &Box<P>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.