This adds set::MutableValues as an opt-in trait for accessing IndexSet values by mutable reference, akin to map::MutableKeys. The implementation simply forwards to the map implementation while discarding the () inner "value".
Unlike IndexMap, IndexSet doesn't have regular get_full_mut or get_index_mut methods, so the "2" suffix here isn't really necessary, but I thought it might be better to stay consistent with MutableKeys on that.
This adds
set::MutableValues
as an opt-in trait for accessingIndexSet
values by mutable reference, akin tomap::MutableKeys
. The implementation simply forwards to the map implementation while discarding the()
inner "value".Unlike
IndexMap
,IndexSet
doesn't have regularget_full_mut
orget_index_mut
methods, so the "2" suffix here isn't really necessary, but I thought it might be better to stay consistent withMutableKeys
on that.Closes #322