Struct pbcodec::fields::MapField
[−]
[src]
pub struct MapField<T: Tag, M: Map> { pub tag: T, pub map: M, }
Fields
tag: T
map: M
Trait Implementations
impl<T: Debug + Tag, M: Debug + Map> Debug for MapField<T, M>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Default + Tag, M: Default + Map> Default for MapField<T, M>
[src]
impl<T: Tag, M: Map> Field for MapField<T, M>
[src]
impl<R, T, M> DecodeField<R> for MapField<T, M> where
R: Read,
T: Tag,
M: Map,
M::Key: Decode<Take<R>>,
M::Value: Decode<Take<R>>,
[src]
R: Read,
T: Tag,
M: Map,
M::Key: Decode<Take<R>>,
M::Value: Decode<Take<R>>,
type Future = DecodeMapField<R, T, M>
fn is_target(tag: u32) -> bool
[src]
fn decode_field(
self,
reader: R,
tag: u32,
wire_type: WireType
) -> Result<Self::Future, Error<R>>
[src]
self,
reader: R,
tag: u32,
wire_type: WireType
) -> Result<Self::Future, Error<R>>
impl<W, T, M> Encode<W> for MapField<T, M> where
W: Write,
T: Tag,
M: Map,
M::Key: Encode<W>,
M::Value: Encode<W>,
[src]
W: Write,
T: Tag,
M: Map,
M::Key: Encode<W>,
M::Value: Encode<W>,