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§
Sourcefn layout(&self, extraction: &Extraction) -> Result<LayoutOutput, EthosError>
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".