pub trait Renderer {
// Required method
fn render(&self, constraint: XY<usize>) -> RenderedDocument;
}
Expand description
A renderer that produces a hypertext document.
Required Methods§
Sourcefn render(&self, constraint: XY<usize>) -> RenderedDocument
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.