pub trait LineBreaker: Debug + Copy + Hash {
    // Required method
    fn line_breaks<'a>(
        &self,
        glyph_info: &'a str
    ) -> Box<dyn Iterator<Item = LineBreak> + 'a>;
}
Expand description

Producer of a LineBreak iterator. Used to allow to the Layout to be line break aware in a generic way.

Required Methods§

source

fn line_breaks<'a>( &self, glyph_info: &'a str ) -> Box<dyn Iterator<Item = LineBreak> + 'a>

Object Safety§

This trait is not object safe.

Implementors§