Skip to main content

render_to_string

Function render_to_string 

Source
pub fn render_to_string<F>(estimated_size: usize, render: F) -> String
where F: FnOnce(&mut StringBuf<'_>) -> usize,
Expand description

Convenience: render a readout into a freshly allocated String. Used by the in-process tests and the crate::diag! bridge in Push 1; later pushes will route directly through a borrowed buffer instead.