Struct ReadIter

pub struct ReadIter<R, T> { /* private fields */ }

Extract and return all PEM sections by reading rd.

Implementations

impl<R: BufRead, T: PemObject> ReadIter<R, T>

fn new(rd: R) -> Self

Create a new iterator.

Trait Implementations

impl<R: BufRead, T: PemObject> Iterator for ReadIter<R, T>

type Item = Result<T, Error>;
fn next(&mut self) -> Option<Self::Item>

Auto Trait Implementations

impl<R, T> Freeze for ReadIter<R, T> where R: Freeze, PhantomData<T>: Freeze,

impl<R, T> RefUnwindSafe for ReadIter<R, T> where R: RefUnwindSafe, PhantomData<T>: RefUnwindSafe,

impl<R, T> Send for ReadIter<R, T> where R: Send, PhantomData<T>: Send,

impl<R, T> Sync for ReadIter<R, T> where R: Sync, PhantomData<T>: Sync,

impl<R, T> Unpin for ReadIter<R, T> where R: Unpin, PhantomData<T>: Unpin,

impl<R, T> UnsafeUnpin for ReadIter<R, T> where R: UnsafeUnpin, PhantomData<T>: UnsafeUnpin,

impl<R, T> UnwindSafe for ReadIter<R, T> where R: UnwindSafe, PhantomData<T>: UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for ReadIter<R, T> where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

impl<T> Any for ReadIter<R, T> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ReadIter<R, T> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ReadIter<R, T> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for ReadIter<R, T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for ReadIter<R, T> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for ReadIter<R, T> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for ReadIter<R, T> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>