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

Method difference

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

Source from the content-addressed store, hash-verified

354 /// `difference` won't truncate `other`, but the `!` operator will.
355 #[must_use]
356 fn difference(self, other: Self) -> Self {
357 Self::from_bits_retain(self.bits() & !other.bits())
358 }
359
360 /// The bitwise exclusive-or (`^`) of the bits in `self` and `other`.
361 #[must_use]

Callers 1

removeMethod · 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