pub trait TableType: Table + Sized {
const TAG: Tag;
const COMPANION: Option<Tag> = None;
// Required method
fn decompile(data: &[u8], font: &mut Font) -> Result<Self>;
// Provided methods
fn decompile_as(tag: Tag, data: &[u8], font: &mut Font) -> Result<Self> { ... }
fn new_as(tag: Tag) -> Self
where Self: Default { ... }
}Expand description
A table type with a fixed tag, which Font::get can return.
Required Associated Constants§
Provided Associated Constants§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".