Uh oh!
There was an error while loading. Please reload this page.
Rename Rng -> RngExt, RngCore -> Rng - #1288
Conversation
dhardy
commented
Mar 23, 2023
This is not the case when using virtual dispatch: So if we do not use this rename:
If we do use this rename:
|
dhardy
commented
Oct 31, 2023
Does anyone have further thoughts on this, or shall we just reject it? (Primary rationale: it's a big breaking change for little gain.) @vks@newpavlov@tarcieri and anyone else who wishes to comment (open discussion) |
tarcieri
commented
Oct 31, 2023
I think I'm happy with just #1273 which will allow us to migrate from |
For review, as mentioned in #1273. Effects:
Rng, CryptoRng, BlockRngCore, CryptoBlockRng. Eh, this still isn't quite right. But we havestruct BlockRng, thus must keeptrait BlockRngCore.Rngand (at least sometimes)RngExt.My opinion is now against this change:
Rng. (In part this is because it's rarely necessary to callRngCoremethods directly; in part it's because anyR: Rngalso satisfiesR: RngCoreand vice-versa.) Now, user-code tends to use both (generics overR: Rngand you needRngExt::genorRngExt::gen_rangeor ..).Still, I'll leave it here in case anyone wishes to review the changes. (Note that a couple of simplifications could be made without the trait rename; e.g. replacing
R: RngCorewithR: Rngin some places.)