Post #2762568
2026-02-20 16:18 UTC
@lholten@hachyderm.io I said "In the same file as the type", but I don't think I would necessarily be consistent about it.
Replies (1)
-
@teivel@mas.to 2026-02-20 16:51
@lilyf@fosstodon.org @lholten@hachyderm.io same here, I'd do same as the type if the private API (including pub crate) of the type was required, and same as the trait if only the public API was required. But it'd be more of, if I added the trait first or the type first.