[][src]Struct bytecodec::combinator::Last

pub struct Last<E: Encode> { /* fields omitted */ }

Combinator for representing encoders that accepts only one additional item.

This is created by calling EncodeExt::last.

Methods

impl<E: Encode> Last<E>[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: Debug + Encode> Debug for Last<E> where
    E::Item: Debug
[src]

impl<E: Default + Encode> Default for Last<E> where
    E::Item: Default
[src]

impl<E: Encode> Encode for Last<E>[src]

type Item = Never

The type of items to be encoded.

impl<E: SizedEncode> SizedEncode for Last<E>[src]

Auto Trait Implementations

impl<E> RefUnwindSafe for Last<E> where
    E: RefUnwindSafe,
    <E as Encode>::Item: RefUnwindSafe

impl<E> Send for Last<E> where
    E: Send,
    <E as Encode>::Item: Send

impl<E> Sync for Last<E> where
    E: Sync,
    <E as Encode>::Item: Sync

impl<E> Unpin for Last<E> where
    E: Unpin,
    <E as Encode>::Item: Unpin

impl<E> UnwindSafe for Last<E> where
    E: UnwindSafe,
    <E as Encode>::Item: UnwindSafe

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> IoEncodeExt for T where
    T: Encode
[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.