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

Method symmetric_difference

src/traits.rs:362–364  ·  view source on GitHub ↗
(self, other: Self)

Source from the content-addressed store, hash-verified

360 /// The bitwise exclusive-or (`^`) of the bits in `self` and `other`.
361 #[must_use]
362 fn symmetric_difference(self, other: Self) -> Self {
363 Self::from_bits_retain(self.bits() ^ other.bits())
364 }
365
366 /// The bitwise negation (`!`) of the bits in `self`, truncating the result.
367 #[must_use]

Callers 1

toggleMethod · 0.80

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