-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hide helper traits from calling code
Makes a couple of changes to avoid helper traits from appearing anywhere in the caller code. It changes the name of the `Display` trait method to reduce the chance that an inherent method conflicts with the type in question, causing undesirable results. It also wraps the helper trait and declarations into an anonymous const context, meaning the helper traits aren't visible to the calling context.
- Loading branch information
Showing
2 changed files
with
49 additions
and
38 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