pub trait Node: Debug {
// Required methods
fn set_display(&mut self, display: bool);
fn get_display(&self) -> bool;
fn build(self: Box<Self>, compiler: &mut Compiler, figure: &mut Figure);
// Provided method
fn build_unboxed(self, compiler: &mut Compiler, figure: &mut Figure)
where Self: Sized { ... }
}
Expand description
A node is a trait characterising objects meant to be parts of the figure’s display tree.