use core::fmt::Debug; use core::hash::Hash; use core::ops::*;
/// A trait marking valid underlying bitset storage types and providing the /// operations `EnumSet` and related types use. /// /// # Safety /// /// Note that `iter` *MUST* be implemented correctly and only return bits that /// are actually set in the representation, or else it will cause undefined /// behavior upstream in `EnumSet`. pubtrait EnumSetTypeRepr : // Basic traits used to derive traits
Copy +
Ord +
Eq +
Debug +
Hash + // Operations used by enumset
BitAnd<Output = Self> +
BitOr<Output = Self> +
BitXor<Output = Self> +
Not<Output = Self> +
{ const PREFERRED_ARRAY_LEN: usize; const WIDTH: u32; const EMPTY: Self;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.