Skip to main content

PlatformParagraphShape

Trait PlatformParagraphShape 

Source
pub trait PlatformParagraphShape: Send + Sync {
    // Required method
    fn layout(&self, width: Pixels) -> Result<Arc<dyn PlatformParagraphLayout>>;
}
Expand description

Immutable shaping result. Reflow must not mutate previously published layouts.

Required Methods§

Source

fn layout(&self, width: Pixels) -> Result<Arc<dyn PlatformParagraphLayout>>

Break at a positive finite logical width, with automatic direction/start alignment.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§