Elektrine lite

← Feed

@epage@hachyderm.io

2026-03-23 20:55 UTC

@diondokter > Some of the item ordering stuff seems a little too strict to me and I have slight disagreements. The ordering rules can't be implemented strictly because they are self-contradictory leading to https://epage.github.io/dev/rust-style/#m-ambiguity I'd be curious to know where you disagree and why you find that ordering helpful.

Replies (1)

  • @diondokter@fosstodon.org 2026-03-23 21:06

    @epage In no particular order: https://epage.github.io/dev/rust-style/#m-pub-priv I generally agree with it. But it is possible for a private type to be more relevant to user understanding than another public type and thus warrants being put above it. https://epage.github.io/dev/rust-style/#m-assoc-trait Sometimes a trait impl is more important than seeing the functions. Probably not true for normal trait impls like Clone or Display. Definitely put those last yeah

    Open ##1596217