Struct protobuf_codec::field::FieldDecoder [] [src]

pub struct FieldDecoder<F, D: ValueDecode> { /* fields omitted */ }

Decoder for required scalar fields.

Methods

impl<F, D: ValueDecode> FieldDecoder<F, D>
[src]

[src]

Makes a new FieldDecoder instance.

Trait Implementations

impl<F: Debug, D: Debug + ValueDecode> Debug for FieldDecoder<F, D>
[src]

[src]

Formats the value using the given formatter. Read more

impl<F: Default, D: Default + ValueDecode> Default for FieldDecoder<F, D>
[src]

[src]

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

impl<F, D> Decode for FieldDecoder<F, D> where
    F: Copy + Into<FieldNum>,
    D: ValueDecode
[src]

The type of items to be decoded.

[src]

Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more

[src]

Finishes the current decoding process and returns the decoded item. Read more

[src]

Returns true if there are no items to be decoded by the decoder at the next invocation of decode method, otherwise false. Read more

[src]

Returns the lower bound of the number of bytes needed to decode the next item. Read more

impl<F, D> FieldDecode for FieldDecoder<F, D> where
    F: Copy + Into<FieldNum>,
    D: ValueDecode
[src]

[src]

Tries to start decoding a field. Read more

impl<F, D> RequiredFieldDecode for FieldDecoder<F, D> where
    F: Copy + Into<FieldNum>,
    D: ValueDecode
[src]

[src]

Returns true if this field has been present in the target input stream, otherwise false. Read more

Auto Trait Implementations

impl<F, D> Send for FieldDecoder<F, D> where
    D: Send,
    F: Send

impl<F, D> Sync for FieldDecoder<F, D> where
    D: Sync,
    F: Sync