Trait wgpu_glyph::LineBreaker[]

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

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

Required methods

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

Implementors

impl LineBreaker for BuiltInLineBreaker

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