-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Ref] Make methods into associated functions (#1618)
Since `Ref` implements `Deref`, methods risk conflicting with methods of the same names on the target type. Note that, in #210, we considered applying the same change to `Unalign`. We choose not to do that because most uses of `Unalign` involve types with alignments greater than 1, and for these types, `Unalign` does not implement `Deref`. It's not worth making the API significantly more cumbersome in order to make it easier for this niche use case. Closes #210
- Loading branch information
Showing
3 changed files
with
64 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters