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

Important traits for Iter<'a, T>

Important traits for IterMut<'a, T>

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

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

impl<T: Stackable + Sync> Sync for StackRef<T>
[src]

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

The raw C type.

Important traits for &'a mut R

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

Important traits for &'a mut R

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.

Performs the indexing (container[index]) operation.

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

Performs 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?

Important traits for Iter<'a, T>

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?

Important traits for IterMut<'a, T>

Creates an iterator from a value. Read more