From OOP to Rust – struggling with code organization and data structure design
@jumpnbrownw
·
2026-04-23
·
via The Rust Programming Language Forum - Latest posts
nmendoza: When to use a struct vs. just passing data around? How granular should my structs be? I'm afraid I'm either splitting too much or not enough. You didn't ask about storing references in structs, so perhaps you already know this is problematic?
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。