pub trait ParagraphLayout {
    // Required method
    fn layout_paragraph(&self, items: &[Item], line_width: f32) -> Vec<Line>;
}
Expand description

Represents a paragraph layout algorithm

Required Methods§

source

fn layout_paragraph(&self, items: &[Item], line_width: f32) -> Vec<Line>

Lays out a paragraph with the given line width that consists of as list of items and returns the laid-out lines.

Implementors§