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

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

An owned stack of T.

Methods

impl<T: Stackable> Stack<T>
[src]

Methods from Deref<Target = StackRef<T>>

[src]

Returns the number of items in the stack

[src]

[src]

[src]

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

[src]

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

[src]

Pushes a value onto the top of the stack.

[src]

Removes the last element from the stack and returns it.

Trait Implementations

impl<T: Stackable> Drop for Stack<T>
[src]

[src]

Executes the destructor for this type. Read more

impl<T: Stackable> IntoIterator for Stack<T>
[src]

Which kind of iterator are we turning this into?

The type of the elements being iterated over.

[src]

Creates an iterator from a value. Read more

impl<T: Stackable> AsRef<StackRef<T>> for Stack<T>
[src]

[src]

Performs the conversion.

impl<T: Stackable> Borrow<StackRef<T>> for Stack<T>
[src]

[src]

Immutably borrows from an owned value. Read more

impl<T: Stackable> ForeignType for Stack<T>
[src]

The raw C type.

The type representing a reference to this type.

[src]

Constructs an instance of this type from its raw type.

[src]

Returns a raw pointer to the wrapped value.

impl<T: Stackable> Deref for Stack<T>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<T: Stackable> DerefMut for Stack<T>
[src]

[src]

Mutably dereferences the value.

impl<'a, T: Stackable> IntoIterator for &'a Stack<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

impl<'a, T: Stackable> IntoIterator for &'a mut Stack<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more