-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
get_each_mut
methods on RawTable
and HashMap
These methods enable looking up mutable references to several entries in a table or map at once. They make use of the min_const_generics feature, which is available without a feature gate on recent nightly — but not yet stable — rustc. Hence everything added here is behind `#[cfg(feature = "nightly")]`. This also removes an unnecessary `unsafe` annotation for `Bucket::as_ptr`.
- Loading branch information
1 parent
80b2c31
commit afce097
Showing
3 changed files
with
245 additions
and
4 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