pub trait TableDef<'a>: Parse<'a, Error = Error> {
const TABLE_ID_RANGES: &'static [(u8, u8)];
const NAME: &'static str;
}Expand description
Implemented by every typed table; drives crate::tables::AnyTable
dispatch. TABLE_ID_RANGES lists the inclusive (lo, hi) table_id ranges
this type accepts.
Required Associated Constants§
Sourceconst TABLE_ID_RANGES: &'static [(u8, u8)]
const TABLE_ID_RANGES: &'static [(u8, u8)]
Inclusive (lo, hi) table_id ranges this type parses.
Single-id types use a single-element slice &[(id, id)].
Multi-range types (e.g. SDT [(0x42,0x42),(0x46,0x46)]) list each
contiguous run separately.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".