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

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

An owned stack of T.

Methods

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

Return a new Stack, taking ownership of the handle

Methods from Deref<Target=StackRef<T>>

Returns the number of items in the stack

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

Removes the last element from the stack and returns it.

Trait Implementations

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

A method called when the value goes out of scope. 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.

Creates an iterator from a value. Read more

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

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

The raw C type.

The type representing a reference to this type.

Constructs an instance of this type from its raw type.

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

The resulting type after dereferencing

The method called to dereference a value

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

The method called to mutably dereference a 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?

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?

Creates an iterator from a value. Read more