pub trait RequiredFieldDecode: FieldDecode {
// Required method
fn is_present(&self) -> bool;
}
Expand description
This trait allows for decoding required fields.
Required Methods§
Sourcefn is_present(&self) -> bool
fn is_present(&self) -> bool
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.