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

Method insert

src/traits.rs:293–298  ·  view source on GitHub ↗

The bitwise or (`|`) of the bits in `self` and `other`.

(&mut self, other: Self)

Source from the content-addressed store, hash-verified

291
292 /// The bitwise or (`|`) of the bits in `self` and `other`.
293 fn insert(&mut self, other: Self)
294 where
295 Self: Sized,
296 {
297 *self = Self::from_bits_retain(self.bits()).union(other);
298 }
299
300 /// The intersection of `self` with the complement of `other` (`&!`).
301 ///

Callers 3

setMethod · 0.80
from_strFunction · 0.80
from_str_strictFunction · 0.80

Implementers 2

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

Calls 2

unionMethod · 0.80
bitsMethod · 0.45

Tested by

no test coverage detected