pub trait Renderer {
// Required method
fn render_frame(&mut self, state: &EditorState) -> String;
}Required Methods§
Sourcefn render_frame(&mut self, state: &EditorState) -> String
fn render_frame(&mut self, state: &EditorState) -> String
Paint one frame of state.
Takes the whole editor rather than (layout, buffers, cursor). Three
parameters meant three chances to hand this face something that did
not match the others — and it happened: the binary passed a literal
Position::ZERO, so every --render=text dump drew the cursor at 1:1
no matter where the cursor actually was.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".