How are trait implementations sorted in rustdoc?

I am wondering if there is any documentation how trait implementations are listed in rustdoc and if/how one can influence this ordering?

Also I realised that the navigation bar orders Implementations on Foreign Types differently than they are ordered in the page itself (see for example Bounded in num - Rust). Is this intended behaviour or a bug?

1 Like