Trait img2text::GlyphSet

source ·
pub trait GlyphSet {
    fn mask_dims(&self) -> [usize; 2];
    fn mask_overlap(&self) -> [usize; 2];
    fn fragment_to_glyph(&self, fragment: Fragment) -> &str;
    fn max_glyph_len(&self) -> usize;
}
Expand description

A set of output glyphs (string fragments) that are associated with expected input image patterns.

This trait’s methods are exempt from the API stability guarantee.

Required Methods§

Implementors§