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

Method intersection

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

Source from the content-addressed store, hash-verified

339 /// The bitwise and (`&`) of the bits in `self` and `other`.
340 #[must_use]
341 fn intersection(self, other: Self) -> Self {
342 Self::from_bits_retain(self.bits() & other.bits())
343 }
344
345 /// The bitwise or (`|`) of the bits in `self` and `other`.
346 #[must_use]

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