From 99a1e9f42e79a73e7ec3c08eb873d0ef271319d8 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 22 Nov 2021 07:37:45 +0100 Subject: support HashSet, BinaryHeap and BTreeSet --- tests/tests.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/tests.rs b/tests/tests.rs index 7801cfc..e004d61 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -204,7 +204,7 @@ fn test3(some: T) { println!("{}", dyn_trait); } -use std::collections::{LinkedList, VecDeque}; +use std::collections::{BTreeSet, BinaryHeap, HashSet, LinkedList, VecDeque}; #[dynamize::dynamize] trait Collections { @@ -219,6 +219,17 @@ trait Collections { fn vec_opt(&self) -> Vec>; } +#[dynamize::dynamize] +trait CollectionsRequiringEq { + type A: Into; + + fn hashset(&self) -> HashSet; + + fn binary_heap(&self) -> BinaryHeap; + + fn btree_set(&self) -> BTreeSet; +} + #[dynamize::dynamize] trait ReturnIter { type A: std::error::Error; -- cgit v1.2.3