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

Method known_bits

src/traits.rs:168–170  ·  view source on GitHub ↗

Get the known bits from a flags value.

(&self)

Source from the content-addressed store, hash-verified

166
167 /// Get the known bits from a flags value.
168 fn known_bits(&self) -> Self::Bits {
169 self.bits() & Self::all().bits()
170 }
171
172 /// Get the unknown bits from a flags value.
173 fn unknown_bits(&self) -> Self::Bits {

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