pub trait DefaultSet: Sized {
    type Set: FromIterator<Self>;

    fn set_from_iter(iter: impl IntoIterator<Item = Self>) -> Self::Set { ... }
}
Expand description

A trait for getting the default “set” type from an “element” type.

This trait has a blanket implementation for bitflags-like types.

Required Associated Types§

Provided Methods§

Construct a Set using Set::from_iter.

Implementors§