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

Method union

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

Source from the content-addressed store, hash-verified

345 /// The bitwise or (`|`) of the bits in `self` and `other`.
346 #[must_use]
347 fn union(self, other: Self) -> Self {
348 Self::from_bits_retain(self.bits() | other.bits())
349 }
350
351 /// The intersection of `self` with the complement of `other` (`&!`).
352 ///

Callers 1

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