Add Send/Sync traits on Iter struct in hash/table
This commit is contained in:
parent
a5d33d8911
commit
a4e4233828
3 changed files with 28 additions and 1 deletions
|
|
@ -25,6 +25,7 @@ use collections::String;
|
|||
use collections::Vec;
|
||||
use collections::VecDeque;
|
||||
use collections::VecMap;
|
||||
use std::collections::HashMap;
|
||||
|
||||
use collections::Bound::Included;
|
||||
use collections::enum_set::CLike;
|
||||
|
|
@ -77,6 +78,8 @@ fn main() {
|
|||
is_sync_send!(BTreeSet::<usize>::new(), intersection(&BTreeSet::<usize>::new()));
|
||||
is_sync_send!(BTreeSet::<usize>::new(), union(&BTreeSet::<usize>::new()));
|
||||
|
||||
all_sync_send!(HashMap::<usize, usize>::new(), keys, values, iter, iter_mut);
|
||||
|
||||
all_sync_send!(LinkedList::<usize>::new(), iter, iter_mut, into_iter);
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue