Trait protobuf_codec::field::RequiredFieldDecode [] [src]

pub trait RequiredFieldDecode: FieldDecode {
    fn is_present(&self) -> bool;
}

This trait allows for decoding required fields.

Required Methods

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

Operationally, it means that the start_decoding method has been accepted by the decoder but the corresponding finish_decoding method has not been called yet.

Implementors