Skip to main content

read_fonts/
table_ref.rs

1use std::ops::Range;
2
3/// Return the minimum range of the table bytes
4///
5/// This trait is implemented in generated code, and we use this to get the
6/// minimum length/bytes of a table.
7pub trait MinByteRange<'a> {
8    fn min_byte_range(&self) -> Range<usize>;
9    fn min_table_bytes(&self) -> &'a [u8];
10}