We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
insert_with_key
1 parent 53a3556 commit 2975b92Copy full SHA for 2975b92
1 file changed
src/lib.rs
@@ -43,7 +43,7 @@ impl<T> SparseMap<T> {
43
44
/// Similar to [`Self::insert()`] but provides a [`Key`] before
45
/// inserting the value.
46
- fn insert_with_key<F>(&mut self, create: F) -> Key
+ pub fn insert_with_key<F>(&mut self, create: F) -> Key
47
where
48
F: FnOnce(&mut Self, Key) -> T,
49
{
0 commit comments