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

Method complement

src/traits.rs:368–370  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

366 /// The bitwise negation (`!`) of the bits in `self`, truncating the result.
367 #[must_use]
368 fn complement(self) -> Self {
369 Self::from_bits_truncate(!self.bits())
370 }
371}
372
373/**

Callers

nothing calls this directly

Implementers 2

macro_free.rsexamples/macro_free.rs
custom_bits_type.rsexamples/custom_bits_type.rs

Calls 1

bitsMethod · 0.45

Tested by

no test coverage detected