Trait protobuf_codec::field::value::ValueEncode [] [src]

pub trait ValueEncode: Encode {
    fn wire_type(&self) -> WireType;
}

This trait allows for encoding field values.

Encode::Item is the type of the field.

Required Methods

Returns the wire type of the value.

Implementations on Foreign Types

impl<V, T, F> ValueEncode for MapFrom<V, T, F> where
    V: ValueEncode,
    F: Fn(T) -> V::Item
[src]

[src]

impl<V, T, E, F> ValueEncode for TryMapFrom<V, T, E, F> where
    V: ValueEncode,
    F: Fn(T) -> Result<V::Item, E>,
    Error: From<E>, 
[src]

[src]

impl<V, E, F> ValueEncode for MapErr<V, E, F> where
    V: ValueEncode,
    F: Fn(Error) -> E,
    Error: From<E>, 
[src]

[src]

Implementors