Struct trust_dns_openssl::tls_server::Stack[][src]

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

An owned stack of T.

Methods

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

Methods from Deref<Target = StackRef<T>>

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

Which kind of iterator are we turning this into?

The type of the elements being iterated over.

Important traits for IntoIter<T>

Creates an iterator from a value. Read more

impl<'a, T> IntoIterator for &'a Stack<T> where
    T: Stackable
[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> IntoIterator for &'a mut Stack<T> where
    T: Stackable
[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> Send for Stack<T> where
    T: Stackable + Send
[src]

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

The resulting type after dereferencing.

Dereferences the value.

impl<T> ForeignType for Stack<T> where
    T: Stackable
[src]

The raw C type.

The type representing a reference to this type.

Constructs an instance of this type from its raw type.

Returns a raw pointer to the wrapped value.

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

Immutably borrows from an owned value. Read more

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

Mutably dereferences the value.

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

Performs the conversion.

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

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

Executes the destructor for this type. Read more