Skip to main content

Setify

Trait Setify 

Source
pub trait Setify {
    type Output;

    // Required method
    fn setify(self) -> Self::Output;
}
Expand description

Converts a set-like structure to an ArrayIndexType.

Required Associated Types§

Required Methods§

Source

fn setify(self) -> Self::Output

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Setify for &str

Source§

impl<T, const N: usize> Setify for [T; N]
where T: Clone + Ord,

Source§

type Output = BTreeSet<T>

Source§

fn setify(self) -> Self::Output

Source§

impl<T> Setify for Vec<T>
where T: Clone + Ord,

Source§

type Output = BTreeSet<T>

Source§

fn setify(self) -> Self::Output

Implementors§