[][src]Trait flags_macro::DefaultSet

pub trait DefaultSet: Sized {
    type Set: FromIterator<Self>;
    fn set_from_iter(iter: impl IntoIterator<Item = Self>) -> Self::Set { ... }
}

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

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

Associated Types

type Set: FromIterator<Self>

Loading content...

Provided methods

fn set_from_iter(iter: impl IntoIterator<Item = Self>) -> Self::Set

Construct a Set using Set::from_iter.

Loading content...

Implementors

impl<T> DefaultSet for T where
    T: BitOr,
    <T as BitOr>::Output: FromIterator<Self>, 
[src]

type Set = <T as BitOr>::Output

Loading content...