Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upVarious refactorings #411
Various refactorings #411
Conversation
|
There are some welcome additions in here like the extra operators, |
- Full name `Unit` in struct definition, because that look better in the documentation - Short name `U` in implementation blocks, which reduces noise in documentation
…beatify looking documentation
… blocks
…r better diffs - 1)
…r better diffs - 2)
|
As the number of commits approaches an obscene large number, I decided to finish part of them in this PR. All but the last are completely backward compatible. The last changes the type requirements for the This does not mean that I propose to make this change in the patch, but this change can raise the version to 0.21 without the danger of actually breaking the user code. Although, if you don't want to take risks, I can exclude it from this PR and include it in one of my next PR with such breaking changes. Summary of changes:
|
|
Sorry for the delay. Please remove the |
|
Done |
|
@Mingun thanks, there are a few build errors which should be straightforward to fix. |
|
The costs of frequent rebases, although I thought I tested all commits for buildable :/. Now all commits buildable |
|
Thank you for your patience. @bors-servo r+ |
|
|
|
|
Some refactoring, *Assign operators and box transform methods for Translations As a continuation of [our discourse](#411 (comment)) about by value vs by reference: added translation methods for Boxes takes its by reference, but as [godbolt](https://rust.godbolt.org/z/Kgqdjd) shows, even without forced `#[inline]` directive compiler smart enough to inline such small function and the code the same in both cases. Therefore, I'm still in favour of taking everything by value in methods that almost only change unit. For now I'm, however, use reference as in surrounding code.
Mingun commentedMar 15, 2020
Part of large changeset, which includes also #410. Aimed to improve ergonomics, fill gaps in the API and overall consistency.