Struct stack_dst::StackA [] [src]

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

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)

Methods

impl<T: ?Sized, D: DataBuf> StackA<T, D>
[src]

[src]

Construct a new (empty) stack

[src]

Tests if the stack is empty

[src]

Push a value at the top of the stack

[src]

Returns a pointer to the top item on the stack

[src]

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

[src]

Pop the top item off the stack

impl<D: DataBuf> StackA<str, D>
[src]

[src]

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

impl<D: DataBuf, T: Clone> StackA<[T], D>
[src]

[src]

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

Trait Implementations

impl<T: ?Sized, D: DataBuf> Drop for StackA<T, D>
[src]

[src]

Executes the destructor for this type. Read more

impl<T: ?Sized, D: DataBuf> Default for StackA<T, D>
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<T, D> !Send for StackA<T, D>

impl<T, D> !Sync for StackA<T, D>