Add VecSet::iter_mut

This commit is contained in:
Richard Feldman 2022-05-02 10:13:35 -04:00
parent ca965c8eac
commit 59d1687d0e
No known key found for this signature in database
GPG Key ID: 7E4127D1E4241798

View File

@ -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> {