Struct pbcodec::fields::Field
[−]
[src]
pub struct Field<T: Tag, V: FieldType> { pub tag: T, pub value: V, }
Fields
tag: T
value: V
Trait Implementations
impl<T: Debug + Tag, V: Debug + FieldType> Debug for Field<T, V>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Default + Tag, V: Default + FieldType> Default for Field<T, V>
[src]
impl<T: Tag, V: FieldType> Field for Field<T, V>
[src]
impl<T: Tag, V: FieldType> SingularField for Field<T, V>
[src]
impl<T: Tag, V: FieldType> From<V> for Field<T, V>
[src]
impl<R, T, F> DecodeField<R> for Field<T, F> where
R: Read,
T: Tag,
F: FieldType + Decode<R>,
[src]
R: Read,
T: Tag,
F: FieldType + Decode<R>,
type Future = DecodeInto<R, F, Self>
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, F> Encode<W> for Field<T, F> where
W: Write,
T: Tag,
F: FieldType + Encode<W>,
[src]
W: Write,
T: Tag,
F: FieldType + Encode<W>,