<p>I feel I&#39;m getting pretty good at Rust, but a problem I feel I still have is I lack a good sense of how to write &quot;composable&quot; Rust code. I can use structs and traits for abstractions, but my code feels very &quot;C-like&quot; in that behaviors are all kind of procedurally mixed up. If I wanted to, say, cleanly separate the underlying logic of an app from swappable UI implementations, I&#39;m not sure what I&#39;d do.</p><p>Note: I know about traits and impls, I&#39;m asking not about syntax but *patterns*. Best practices.</p>
Reply