Struct pbcodec::fields::Field [] [src]

pub struct Field<T: Tag, V: FieldType> {
    pub tag: T,
    pub value: V,
}

Fields

Trait Implementations

impl<T: Debug + Tag, V: Debug + FieldType> Debug for Field<T, V>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Default + Tag, V: Default + FieldType> Default for Field<T, V>
[src]

[src]

Returns the "default value" for a type. Read more

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]

[src]

Performs the conversion.

impl<R, T, F> DecodeField<R> for Field<T, F> where
    R: Read,
    T: Tag,
    F: FieldType + Decode<R>, 
[src]

[src]

[src]

impl<W, T, F> Encode<W> for Field<T, F> where
    W: Write,
    T: Tag,
    F: FieldType + Encode<W>, 
[src]

[src]

[src]

Auto Trait Implementations

impl<T, V> Send for Field<T, V> where
    T: Send,
    V: Send

impl<T, V> Sync for Field<T, V> where
    T: Sync,
    V: Sync