pub trait Render {
// Required methods
fn should_render(&self) -> bool;
fn invalidate(&mut self);
fn render(
&mut self,
stdout: &mut Stdout,
bounding_box: BoundingBox,
) -> Result<()>;
fn get_cursor(&self) -> (u16, u16);
}Required Methods§
fn should_render(&self) -> bool
fn invalidate(&mut self)
Sourcefn render(
&mut self,
stdout: &mut Stdout,
bounding_box: BoundingBox,
) -> Result<()>
fn render( &mut self, stdout: &mut Stdout, bounding_box: BoundingBox, ) -> Result<()>
NB: [render] takes [&mut self] since there isn’t a separate notification to component that their bbox changed.