[][src]Struct protobuf_codec::field::MapFieldDecoder

pub struct MapFieldDecoder<F, K, V, M> where
    M: IntoIterator<Item = (K::Item, V::Item)>,
    K: MapKeyDecode,
    V: ValueDecode
{ /* fields omitted */ }

Decoder for map fields which have scalar values.

Methods

impl<F, K, V, M> MapFieldDecoder<F, K, V, M> where
    K: MapKeyDecode,
    V: ValueDecode,
    M: IntoIterator<Item = (K::Item, V::Item)> + Default
[src]

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

Makes a new MapFieldDecoder instance.

Trait Implementations

impl<F, K, V, M> FieldDecode for MapFieldDecoder<F, K, V, M> where
    F: Copy + Into<FieldNum>,
    K: MapKeyDecode,
    V: ValueDecode,
    M: Default + Extend<(K::Item, V::Item)> + IntoIterator<Item = (K::Item, V::Item)>, 
[src]

impl<F: Default, K: Default, V: Default, M: Default> Default for MapFieldDecoder<F, K, V, M> where
    M: IntoIterator<Item = (K::Item, V::Item)>,
    K: MapKeyDecode,
    V: ValueDecode
[src]

impl<F, K, V, M> Debug for MapFieldDecoder<F, K, V, M> where
    K: MapKeyDecode,
    V: ValueDecode,
    M: IntoIterator<Item = (K::Item, V::Item)>, 
[src]

impl<F, K, V, M> Decode for MapFieldDecoder<F, K, V, M> where
    F: Copy + Into<FieldNum>,
    K: MapKeyDecode,
    V: ValueDecode,
    M: Default + Extend<(K::Item, V::Item)> + IntoIterator<Item = (K::Item, V::Item)>, 
[src]

type Item = M

The type of items to be decoded.

Auto Trait Implementations

impl<F, K, V, M> Send for MapFieldDecoder<F, K, V, M> where
    F: Send,
    K: Send,
    M: Send,
    V: Send,
    <M as IntoIterator>::IntoIter: Send

impl<F, K, V, M> Unpin for MapFieldDecoder<F, K, V, M> where
    F: Unpin,
    K: Unpin,
    M: Unpin,
    V: Unpin,
    <M as IntoIterator>::IntoIter: Unpin

impl<F, K, V, M> Sync for MapFieldDecoder<F, K, V, M> where
    F: Sync,
    K: Sync,
    M: Sync,
    V: Sync,
    <M as IntoIterator>::IntoIter: Sync

impl<F, K, V, M> UnwindSafe for MapFieldDecoder<F, K, V, M> where
    F: UnwindSafe,
    K: UnwindSafe,
    M: UnwindSafe,
    V: UnwindSafe,
    <M as IntoIterator>::IntoIter: UnwindSafe

impl<F, K, V, M> RefUnwindSafe for MapFieldDecoder<F, K, V, M> where
    F: RefUnwindSafe,
    K: RefUnwindSafe,
    M: RefUnwindSafe,
    V: RefUnwindSafe,
    <M as IntoIterator>::IntoIter: 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]