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
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.
Returns the mutable slice view of Self
The element type of the slice view
Returns the immutable slice view of Self
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
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
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.