pub trait RtypeRecordData {
    const RTYPE: Rtype;
}
Expand description

A type for record data for a single specific record type.

If a record data type only ever processes one single record type, things can be a lot simpler. The type can be given as an associated constant which can be used to implement RecordData. In addition, parsing can be done atop an implementation of the Parse trait.

This trait provides such a simplification by providing RecordData for all types implementing it and the other requirements for RecordData. If the type additionally implements Parse, it will also receive a ParseRecordData implementation.

Required Associated Constants

The record type of a value of this type.

Implementors