Trait HashSetExt

Source
pub trait HashSetExt {
    type Item;

    // Required methods
    fn new() -> Self;
    fn to_owned_vec(&self) -> Vec<Self::Item>;
}
Expand description

Provides API parity with std::collections::HashSet.

Required Associated Types§

Required Methods§

Source

fn new() -> Self

Source

fn to_owned_vec(&self) -> Vec<Self::Item>

Equivalent to self.iter().cloned().collect::<Vec<_>>().

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§