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

Method clear

src/traits.rs:332–337  ·  view source on GitHub ↗

Unsets all bits in the flags.

(&mut self)

Source from the content-addressed store, hash-verified

330
331 /// Unsets all bits in the flags.
332 fn clear(&mut self)
333 where
334 Self: Sized,
335 {
336 *self = Self::empty();
337 }
338
339 /// The bitwise and (`&`) of the bits in `self` and `other`.
340 #[must_use]

Callers 4

roundtripFunction · 0.80
roundtrip_truncateFunction · 0.80
roundtrip_strictFunction · 0.80
caseFunction · 0.80

Implementers 2

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

Calls

no outgoing calls

Tested by 4

roundtripFunction · 0.64
roundtrip_truncateFunction · 0.64
roundtrip_strictFunction · 0.64
caseFunction · 0.64