()
| 14 | |
| 15 | impl View { |
| 16 | pub fn new() -> Self { |
| 17 | Self { |
| 18 | children: Vec::new(), |
| 19 | style: Style::default(), |
| 20 | layout: Layout::Column, |
| 21 | bounds: Rect::default(), |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | pub fn child<C: Component + 'static>(mut self, component: C) -> Self { |
| 26 | self.children.push(Box::new(component)); |
nothing calls this directly
no outgoing calls
no test coverage detected