Skip to main content

render_view

Function render_view 

Source
pub fn render_view(content: &DocumentContent, mode: &ViewMode) -> Result<String>
Expand description

Renders a DocumentContent into a string according to the chosen ViewMode.

ยงErrors

Returns an error if rendering fails (currently infallible, but the signature allows for future fallible rendering).