[][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.

Implementations

impl<T> Iter<T>[src]

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

Creates a new iterator encoder atop iter.

Trait Implementations

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?

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

Auto Trait Implementations

impl<T> RefUnwindSafe for Iter<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for Iter<T> where
    T: Send
[src]

impl<T> Sync for Iter<T> where
    T: Sync
[src]

impl<T> Unpin for Iter<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for Iter<T> where
    T: UnwindSafe
[src]

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.