MCPcopy Create free account
hub / github.com/bitflags/bitflags / BitFlags

Interface BitFlags

src/traits.rs:462–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460#[doc(hidden)]
461#[deprecated(note = "use the `Flags` trait instead")]
462pub trait BitFlags: ImplementedByBitFlagsMacro + Flags {
463 /// An iterator over enabled flags in an instance of the type.
464 type Iter: Iterator<Item = Self>;
465
466 /// An iterator over the raw names and bits for enabled flags in an instance of the type.
467 type IterNames: Iterator<Item = (&'static str, Self)>;
468}
469
470#[allow(deprecated)]
471impl<B: Flags> BitFlags for B {

Callers

nothing calls this directly

Implementers 2

traits.rssrc/traits.rs
bitflags_trait_custom.rstests/compile-fail/bitflags_trait_cust

Calls

no outgoing calls

Tested by

no test coverage detected