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

Method complement_retain

tests/compile-pass/bitflags_trait_supertrait.rs:59–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 + SubAssign,
58{
59 fn complement_retain(self) -> Self {
60 Self::from_bits_retain(!self.bits())
61 }
62
63 fn has_uncorresponding_bits(self) -> bool {
64 !(self & Self::all().complement_retain()).is_empty()

Callers 1

Calls 1

bitsMethod · 0.45

Tested by

no test coverage detected