Crate linked_hash_set[−][src]
A linked hash set implementation based on the linked_hash_map
crate.
See LinkedHashSet
.
Examples
extern crate linked_hash_set; use linked_hash_set::LinkedHashSet; let mut set = LinkedHashSet::new(); assert!(set.insert(234)); assert!(set.insert(123)); assert!(set.insert(345)); assert!(!set.insert(123)); assert_eq!(set.into_iter().collect::<Vec<_>>(), vec![234, 345, 123]);
Structs
Difference |
A lazy iterator producing elements in the difference of |
Intersection |
A lazy iterator producing elements in the intersection of |
IntoIter |
An owning iterator over the items of a |
Iter |
An iterator over the items of a |
LinkedHashSet |
A linked hash set implemented as a |
SymmetricDifference |
A lazy iterator producing elements in the symmetric difference of |
Union |
A lazy iterator producing elements in the union of |