Struct stack_dst::StackA[][src]

pub struct StackA<T: ?Sized, D: DataBuf> { /* fields omitted */ }
Expand description

A fixed-capacity stack that can contain dynamically-sized types

Uses an array of usize as a backing store for a First-In, Last-Out stack of items that can unsize to T.

Note: Each item in the stack takes at least one usize (to store the metadata)

Implementations

Construct a new (empty) stack

Tests if the stack is empty

Push a value at the top of the stack (without using Unsize)

Returns a pointer to the top item on the stack

Returns a pointer to the top item on the stack (unique/mutable)

Pop the top item off the stack

Push the contents of a string slice as an item onto the stack

Pushes a set of items (cloning out of the input slice)

Trait Implementations

Returns the “default value” for a type. Read more

Executes the destructor for this type. 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

Performs the conversion.

Performs the conversion.

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.