Skip to main content

LayoutEngine

Trait LayoutEngine 

Source
pub trait LayoutEngine {
    // Required method
    fn layout(
        &self,
        extraction: &Extraction,
    ) -> Result<LayoutOutput, EthosError>;
}
Expand description

The layout boundary: consumes extraction (already quantized), produces the element graph. Implementations live in ethos-layout (Milestone B, WS-LAYOUT).

Required Methods§

Source

fn layout(&self, extraction: &Extraction) -> Result<LayoutOutput, EthosError>

Compute reading order, blocks, headings, lists.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§