Skip to main content

Renderer

Trait Renderer 

Source
pub trait Renderer {
    // Required method
    fn render(&self, constraint: XY<usize>) -> RenderedDocument;
}
Expand description

A renderer that produces a hypertext document.

Required Methods§

Source

fn render(&self, constraint: XY<usize>) -> RenderedDocument

Renders this document within the given size constraint and returns the result.

This method is called by MarkupView every time the provided width changes.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§