Struct openssl::x509::GeneralNames [] [src]

pub struct GeneralNames<'a> {
    // some fields omitted
}

A collection of OpenSSL GENERAL_NAMEs.

Methods

impl<'a> GeneralNames<'a>
[src]

fn len(&self) -> usize

Returns the number of GeneralNames in this structure.

fn get(&self, idx: usize) -> GeneralName<'a>

Returns the specified GeneralName.

Panics

Panics if idx is not less than len().

fn iter(&self) -> GeneralNamesIter

Returns an iterator over the GeneralNames in this structure.

Trait Implementations

impl<'a> IntoIterator for &'a GeneralNames<'a>
[src]

type Item = GeneralName<'a>

The type of the elements being iterated over.

type IntoIter = GeneralNamesIter<'a>

Which kind of iterator are we turning this into?

fn into_iter(self) -> GeneralNamesIter<'a>

Creates an iterator from a value. Read more