Skip to main content

impl_font_read_at

Macro impl_font_read_at 

Source
macro_rules! impl_font_read_at {
    ($typ:ty) => { ... };
}
Expand description

Implements FontReadAt for a type that is read through FontRead, by slicing the enclosing data to the item first.

Codegen emits this for the records it generates that are not positioned; this covers the types written by hand. A blanket impl is not possible, because a positioned type implements FontReadAt directly and the compiler cannot be told that no type does both.