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

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

A collection of OpenSSL GENERAL_NAMEs.

Methods

impl<'a> GeneralNames<'a>

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>

type Item = GeneralName<'a>

type IntoIter = GeneralNamesIter<'a>

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