Skip to content

Add DashMap::extend_non_mut and DashSet::extend_non_mut#317

Open
chicoferreira wants to merge 1 commit into
xacrimon:masterfrom
chicoferreira:extend_non_mut
Open

Add DashMap::extend_non_mut and DashSet::extend_non_mut#317
chicoferreira wants to merge 1 commit into
xacrimon:masterfrom
chicoferreira:extend_non_mut

Conversation

@chicoferreira
Copy link
Copy Markdown

Fixes #281

DashMap::extend and DashSet::extend require a mutable reference because of the underlying Extend trait, which can be limiting. This PR adds DashMap::extend_non_mut and DashSet::extend_non_mut, allowing the same functionality with an immutable reference (&self) for improved flexibility.

@esemeniuc
Copy link
Copy Markdown

esemeniuc commented Aug 17, 2025

bump on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

By-reference version of extend

2 participants