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

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

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

Performs the conversion.

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

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

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<T: Stackable> Borrow<StackRef<T>> for Stack<T>
[src]

Immutably borrows from an owned value. Read more

impl<T: Stackable> ForeignTypeRef 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.

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more