[][src]Struct bcder::encode::Iter

pub struct Iter<T>(pub T);

A wrapper for an iterator of values.

The wrapper is needed because a blanket impl on any iterator type is currently not possible.

Note that T needs to be clone because we need to be able to restart iterating at the beginning.

Methods

impl<T> Iter<T>[src]

pub fn new(iter: T) -> Self[src]

Creates a new iterator encoder atop iter.

Trait Implementations

impl<T> Values for Iter<T> where
    T: Clone + IntoIterator,
    <T as IntoIterator>::Item: Values
[src]

fn explicit(self, tag: Tag) -> Constructed<Self> where
    Self: Sized
[src]

Converts the encoder into one with an explicit tag.

fn to_captured(&self, mode: Mode) -> Captured[src]

Captures the encoded values in the given mode.

impl<T: IntoIterator> IntoIterator for Iter<T>[src]

type Item = <T as IntoIterator>::Item

The type of the elements being iterated over.

type IntoIter = <T as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?

impl<'a, T: Clone + IntoIterator> IntoIterator for &'a Iter<T>[src]

type Item = <T as IntoIterator>::Item

The type of the elements being iterated over.

type IntoIter = <T as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl<T> Send for Iter<T> where
    T: Send

impl<T> Sync for Iter<T> where
    T: Sync

Blanket Implementations

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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