pub trait Render {
// Required method
fn render(&self, loc: Vec2, buffer: &mut Buffer) -> Vec2;
// Provided method
fn size(&self) -> Vec2 { ... }
}
Expand description
The main system that will render an element at a location to the buffer. Render’s return type is the location the render ended at.