pub trait DatabaseFormat {
    type RecordHeader: DatabaseRecord;
    type AppInfoRecord: ExtraInfoRecord;

    const USES_COMPAT_PADDING: bool;

    // Required method
    fn is_valid(data: &[u8], header: &DatabaseHeader) -> bool;
}
Expand description

Helper trait for database format types

Required Associated Types§

source

type RecordHeader: DatabaseRecord

The record header type for this database format

source

type AppInfoRecord: ExtraInfoRecord

The type of the app info record

Required Associated Constants§

Required Methods§

source

fn is_valid(data: &[u8], header: &DatabaseHeader) -> bool

Returns whether the database is valid as this database format

Implementors§