How can I improve this rust code?
When we iterate over an Octree grid, these help to filter only the leaf nodes, or parent nodes.
I would like to improve:
- Shorten the function return type, as its very verbose
- Implement other filter functions that can be chained.
As in:
for node in octree.iter().leaf_nodes().in_level(5).has_unbalanced_neighbor() {
todo!();
}
#rust #aerospace #cfd
Customer Service Event Manager na Pratt & Whitney Canada
1moTransforming the future of aerospace and defense!