MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / child

Method child

src/components/view.rs:25–28  ·  view source on GitHub ↗
(mut self, component: C)

Source from the content-addressed store, hash-verified

23 }
24
25 pub fn child<C: Component + 'static>(mut self, component: C) -> Self {
26 self.children.push(Box::new(component));
27 self
28 }
29
30 pub fn with_layout(mut self, layout: Layout) -> Self {
31 self.layout = layout;

Callers 8

rebuild_uiMethod · 0.45
build_todo_listMethod · 0.45
rebuild_uiMethod · 0.45
build_todo_listMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
newMethod · 0.45

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected