[][src]Struct bytecodec::combinator::Repeat

pub struct Repeat<E, I> { /* fields omitted */ }

Combinator for repeating encoding of E::Item.

This is created by calling EncodeExt::repeat method.

Methods

impl<E, I> Repeat<E, I>[src]

pub fn inner_ref(&self) -> &E[src]

Returns a reference to the inner encoder.

pub fn inner_mut(&mut self) -> &mut E[src]

Returns a mutable reference to the inner encoder.

pub fn into_inner(self) -> E[src]

Takes ownership of this instance and returns the inner encoder.

Trait Implementations

impl<E, I> Encode for Repeat<E, I> where
    E: Encode,
    I: Iterator<Item = E::Item>, 
[src]

type Item = I

The type of items to be encoded.

impl<E: Default, I> Default for Repeat<E, I>[src]

impl<E: Debug, I: Debug> Debug for Repeat<E, I>[src]

Auto Trait Implementations

impl<E, I> Send for Repeat<E, I> where
    E: Send,
    I: Send

impl<E, I> Unpin for Repeat<E, I> where
    E: Unpin,
    I: Unpin

impl<E, I> Sync for Repeat<E, I> where
    E: Sync,
    I: Sync

impl<E, I> UnwindSafe for Repeat<E, I> where
    E: UnwindSafe,
    I: UnwindSafe

impl<E, I> RefUnwindSafe for Repeat<E, I> where
    E: RefUnwindSafe,
    I: RefUnwindSafe

Blanket Implementations

impl<T> IoEncodeExt for T where
    T: Encode
[src]

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

impl<T> From<T> for 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.

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

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

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