| "Name" | "Weight" |
|---|---|
| {text!(category.name.clone())} |
{text!(category.total_weight().to_string())} |
|
"Sum" |
{text!(categories.iter().map(|category| category.total_weight()).sum:: |
| "Name" | "Weight" |
|---|---|
| {text!(item.name.clone())} |