Struct open_coroutine::Stack

source ·
pub struct Stack { /* private fields */ }
Expand description

Represents any kind of stack memory.

FixedSizeStack as well as ProtectedFixedSizeStack can be used to allocate actual stack space.

Implementations§

Returns the top of the stack from which on it grows downwards towards bottom().

Returns the bottom of the stack and thus it’s end.

Returns the size of the stack between top() and bottom().

Returns the minimal stack size allowed by the current platform.

Returns the maximum stack size allowed by the current platform.

Returns a implementation defined default stack size.

This value can vary greatly between platforms, but is usually only a couple memory pages in size and enough for most use-cases with little recursion. It’s usually a better idea to specifiy an explicit stack size instead.

Trait Implementations§

Formats the value using the given formatter. Read more

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 alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
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.