pub struct DynStack<'a> { /* private fields */ }
Expand description

Stack wrapper around a buffer of uninitialized bytes.

Implementations

Returns a new DynStack from the provided memory buffer.

Returns a new aligned and uninitialized DynArray and a stack over the remainder of the buffer.

Panics

Panics if the stack isn’t large enough to allocate the array.

Returns a new aligned DynArray, initialized with the provided function, and a stack over the remainder of the buffer.

Panics

Panics if the stack isn’t large enough to allocate the array, or if the provided function panics.

Returns a new uninitialized DynArray and a stack over the remainder of the buffer.

Panics

Panics if the stack isn’t large enough to allocate the array.

Returns a new DynArray, initialized with the provided function, and a stack over the remainder of the buffer.

Panics

Panics if the stack isn’t large enough to allocate the array, or if the provided function panics.

Returns a new aligned DynArray, initialized with the provided iterator, and a stack over the remainder of the buffer.
If there isn’t enough space for all the iterator items, then the returned array only contains the first elements that fit into the stack.

Panics

Panics if the provided iterator panics.

Returns a new DynArray, initialized with the provided iterator, and a stack over the remainder of the buffer.
If there isn’t enough space for all the iterator items, then the returned array only contains the first elements that fit into the stack.

Panics

Panics if the provided iterator panics.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.