trait MorphStateTable<T>where
T: FixedSize + AnyBitPattern,{
// Required methods
fn n_classes(&self) -> usize;
fn class(&self, glyph_id: GlyphId) -> Result<u16, ReadError>;
fn entry(&self, state: u16, class: u16) -> Result<StateEntry<T>, ReadError>;
fn collect_glyphs_filtered(
&self,
glyphs: &mut U32Set,
num_glyphs: u32,
filter: impl Fn(u16) -> bool,
);
fn build_safe_to_break(
&self,
accel: &mut SafeToBreakAccel,
data: &[u8],
is_actionable: &dyn Fn(&StateEntry<T>) -> bool,
can_advance: &dyn Fn(&StateEntry<T>) -> bool,
) -> SafeToBreakSubtable;
}Required Methods§
fn n_classes(&self) -> usize
fn class(&self, glyph_id: GlyphId) -> Result<u16, ReadError>
fn entry(&self, state: u16, class: u16) -> Result<StateEntry<T>, ReadError>
fn collect_glyphs_filtered( &self, glyphs: &mut U32Set, num_glyphs: u32, filter: impl Fn(u16) -> bool, )
fn build_safe_to_break( &self, accel: &mut SafeToBreakAccel, data: &[u8], is_actionable: &dyn Fn(&StateEntry<T>) -> bool, can_advance: &dyn Fn(&StateEntry<T>) -> bool, ) -> SafeToBreakSubtable
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".