pub trait Shape { type Body: Shape = NeverShape; // Provided methods fn body(&self) -> Self::Body { ... } fn render(&self) -> ShapeNode { ... } }
A composable shape component.