[][src]Struct protobuf_codec::field::PackedFieldDecoder

pub struct PackedFieldDecoder<F, D, V> where
    D: NumericValueDecode,
    V: Default + Extend<D::Item>, 
{ /* fields omitted */ }

Decoder for packed repeated fields.

Actually this can decode fields regardless of whether they are packed or not.

Methods

impl<F, D, V> PackedFieldDecoder<F, D, V> where
    D: NumericValueDecode,
    V: Default + Extend<D::Item>, 
[src]

pub fn new(field_num: F, value_decoder: D) -> Self[src]

Makes a new PackedFieldDecoder instance.

Trait Implementations

impl<F, D, V> FieldDecode for PackedFieldDecoder<F, D, V> where
    F: Copy + Into<FieldNum>,
    D: NumericValueDecode,
    V: Default + Extend<D::Item> + IntoIterator<Item = D::Item>, 
[src]

impl<F: Default, D: Default, V: Default> Default for PackedFieldDecoder<F, D, V> where
    D: NumericValueDecode,
    V: Default + Extend<D::Item>, 
[src]

impl<F: Debug, D: Debug, V: Debug> Debug for PackedFieldDecoder<F, D, V> where
    D: NumericValueDecode,
    V: Default + Extend<D::Item>, 
[src]

impl<F, D, V> Decode for PackedFieldDecoder<F, D, V> where
    F: Copy + Into<FieldNum>,
    D: NumericValueDecode,
    V: Default + Extend<D::Item> + IntoIterator<Item = D::Item>, 
[src]

type Item = V

The type of items to be decoded.

Auto Trait Implementations

impl<F, D, V> Send for PackedFieldDecoder<F, D, V> where
    D: Send,
    F: Send,
    V: Send

impl<F, D, V> Unpin for PackedFieldDecoder<F, D, V> where
    D: Unpin,
    F: Unpin,
    V: Unpin

impl<F, D, V> Sync for PackedFieldDecoder<F, D, V> where
    D: Sync,
    F: Sync,
    V: Sync

impl<F, D, V> UnwindSafe for PackedFieldDecoder<F, D, V> where
    D: UnwindSafe,
    F: UnwindSafe,
    V: UnwindSafe

impl<F, D, V> RefUnwindSafe for PackedFieldDecoder<F, D, V> where
    D: RefUnwindSafe,
    F: RefUnwindSafe,
    V: RefUnwindSafe

Blanket Implementations

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]

impl<T> IoDecodeExt for T where
    T: Decode
[src]

impl<T> DecodeExt for T where
    T: Decode
[src]