Struct openssl::stack::StackRef [] [src]

pub struct StackRef<T: Stackable>(_, _);

Methods

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

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> OpenSslTypeRef for StackRef<T>
[src]

The raw C type.

Constructs a shared instance of this type from its raw type.

Constructs a mutable reference of this type from its raw type.

Returns a raw pointer to the wrapped value.

impl<T: Stackable> Index<usize> for StackRef<T>
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<T: Stackable> IndexMut<usize> for StackRef<T>
[src]

The method for the mutable indexing (container[index]) operation

impl<'a, T: Stackable> IntoIterator for &'a StackRef<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 StackRef<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