mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-13 09:49:11 +03:00
Add VecSet::iter_mut
This commit is contained in:
parent
ca965c8eac
commit
59d1687d0e
@ -58,6 +58,10 @@ impl<T: PartialEq> VecSet<T> {
|
||||
pub fn iter(&self) -> impl Iterator<Item = &T> {
|
||||
self.elements.iter()
|
||||
}
|
||||
|
||||
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut T> {
|
||||
self.elements.iter_mut()
|
||||
}
|
||||
}
|
||||
|
||||
impl<A: Ord> Extend<A> for VecSet<A> {
|
||||
|
Loading…
Reference in New Issue
Block a user