Struct openssl::stack::Stack[][src]

pub struct Stack<T: Stackable>(_);
Expand description

An owned stack of T.

Implementations

Methods from Deref<Target = StackRef<T>>

Returns the number of items in the stack.

Determines if the stack is empty.

Returns a reference to the element at the given index in the stack or None if the index is out of bounds

Returns a mutable reference to the element at the given index in the stack or None if the index is out of bounds

Pushes a value onto the top of the stack.

Removes the last element from the stack and returns it.

Trait Implementations

Performs the conversion.

Immutably borrows from an owned value. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Executes the destructor for this type. Read more

The raw C type.

The type representing a reference to this type.

Constructs an instance of this type from its raw type.

Returns a raw pointer to the wrapped value.

Which kind of iterator are we turning this into?

The type of the elements being iterated over.

Creates an iterator from a value. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. 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.