-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The idea was to have special traits with convenience methods ```rust impl GuardedRegion for Arc<RwLock<Region>> { fn add_empty_block(&self) -> UnsetBlock { self.rd().add_empty_block() } } ``` to allow writing ```rust region.add_empty_block() ``` instead of ```rust region.try_read().unwrap().add_empty_block() ``` This had two problems. One was that it of course takes extra code to implement and clients would be needed to always include the trait. The bigger problem though is that this layer of indirection hides the docstring from the original method unless you copy the docstring.
- Loading branch information
1 parent
007c603
commit dea2aac
Showing
25 changed files
with
231 additions
and
595 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
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
Oops, something went wrong.