all: split reusable components into workspace crates
This commit is contained in:
parent
2a079ed800
commit
657e7ce2f7
225 changed files with 7422 additions and 17602 deletions
|
|
@ -1,15 +0,0 @@
|
|||
use std::collections::HashMap;
|
||||
|
||||
pub trait HashMapExt {
|
||||
type V;
|
||||
|
||||
fn drain_values(&mut self) -> impl Iterator<Item = Self::V>;
|
||||
}
|
||||
|
||||
impl<K, V, S> HashMapExt for HashMap<K, V, S> {
|
||||
type V = V;
|
||||
|
||||
fn drain_values(&mut self) -> impl Iterator<Item = Self::V> {
|
||||
self.drain().map(|(_, v)| v)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue