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.
1 parent 57a982e commit 95d1614Copy full SHA for 95d1614
src/id.rs
@@ -89,6 +89,11 @@ impl<T> Collection<T> {
89
self.0.get(id)
90
}
91
92
+ /// Get a mutable reference on the object associated to the typed [Id]
93
+ pub fn get_mut(&mut self, id: &Id<T>) -> Option<&mut T> {
94
+ self.0.get_mut(id)
95
+ }
96
+
97
/// Returns the number of objects in the [Collection]
98
pub fn len(&self) -> usize {
99
self.0.len()
0 commit comments