RecordRef::rtype

Get the record's record type enum which can be used for match expressions with different handling for different types of records.

Returns

RType

This function returns an error if the header contains an unknown RType.

API method
pub fn rtype(&self) -> dbn::Result<RType>;