oxilean_std/hashset/oxihashset_symmetric_difference_group.rs
1//! # OxiHashSet - symmetric_difference_group Methods
2//!
3//! This module contains method implementations for `OxiHashSet`.
4//!
5//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
6
7use super::oxihashset_type::OxiHashSet;
8use std::hash::Hash;
9
10impl<T: Eq + Hash + Clone> OxiHashSet<T> {
11 /// Return a new set that is the symmetric difference of `self` and `other`.
12 pub fn symmetric_difference(&self, other: &Self) -> Self {
13 Self {
14 inner: self
15 .inner
16 .symmetric_difference(&other.inner)
17 .cloned()
18 .collect(),
19 }
20 }
21}