Struct protobuf_codec::field::PackedFieldEncoder [] [src]

pub struct PackedFieldEncoder<F, E, V: IntoIterator> { /* fields omitted */ }

Encoder for packed repeated fields.

Methods

impl<F, E, V: IntoIterator> PackedFieldEncoder<F, E, V>
[src]

[src]

Makes a new PackedFieldEncoder instance.

Trait Implementations

impl<F: Debug, E: Debug, V: Debug + IntoIterator> Debug for PackedFieldEncoder<F, E, V> where
    V::IntoIter: Debug
[src]

[src]

Formats the value using the given formatter. Read more

impl<F: Default, E: Default, V: IntoIterator> Default for PackedFieldEncoder<F, E, V>
[src]

[src]

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

impl<F, E, V> Encode for PackedFieldEncoder<F, E, V> where
    F: Copy + Into<FieldNum>,
    E: NumericValueEncode,
    V: IntoIterator<Item = E::Item>, 
[src]

The type of items to be encoded.

[src]

Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more

[src]

Tries to start encoding the given item. Read more

[src]

Returns true if there are no items to be encoded in the encoder, otherwise false. Read more

[src]

Returns the number of bytes required to encode all the items in the encoder. Read more

impl<F, E, V> SizedEncode for PackedFieldEncoder<F, E, V> where
    F: Copy + Into<FieldNum>,
    E: NumericValueEncode,
    V: IntoIterator<Item = E::Item>, 
[src]

[src]

Returns the exact number of bytes required to encode all the items remaining in the encoder.

impl<F, E, V> FieldEncode for PackedFieldEncoder<F, E, V> where
    F: Copy + Into<FieldNum>,
    E: NumericValueEncode,
    V: IntoIterator<Item = E::Item>, 
[src]

Auto Trait Implementations

impl<F, E, V> Send for PackedFieldEncoder<F, E, V> where
    E: Send,
    F: Send,
    <V as IntoIterator>::IntoIter: Send

impl<F, E, V> Sync for PackedFieldEncoder<F, E, V> where
    E: Sync,
    F: Sync,
    <V as IntoIterator>::IntoIter: Sync