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 f813966 commit edc4c86Copy full SHA for edc4c86
src/node.rs
@@ -383,15 +383,6 @@ where
383
self.inner.get(index)
384
}
385
386
- pub fn take(mut self, index: usize) -> (Self, Option<Node<C>>) {
387
- if index < self.inner.len() {
388
- let node = Some(self.inner.remove(index));
389
- (self, node)
390
- } else {
391
- (self, None)
392
- }
393
394
-
395
#[allow(unused)]
396
pub fn get_mut(&mut self, index: usize) -> Option<&mut Node<C>> {
397
self.inner.get_mut(index)
@@ -400,6 +391,10 @@ where
400
pub fn iter(&self) -> std::slice::Iter<'_, Node<C>> {
401
self.inner.iter()
402
+
+ pub fn iter_mut(&mut self) -> std::slice::IterMut<'_, Node<C>> {
+ self.inner.iter_mut()
+ }
403
398
404
399
405
impl NodeCluster<SequencerConfig> {
0 commit comments