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

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

Methods

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

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

The raw C type.

[src]

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

[src]

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

[src]

Returns a raw pointer to the wrapped value.

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

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

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

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

[src]

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?

[src]

Creates an iterator from a value. Read more