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

Method truncate

src/traits.rs:285–290  ·  view source on GitHub ↗

Remove any unknown bits from the flags.

(&mut self)

Source from the content-addressed store, hash-verified

283
284 /// Remove any unknown bits from the flags.
285 fn truncate(&mut self)
286 where
287 Self: Sized,
288 {
289 *self = Self::from_bits_truncate(self.bits());
290 }
291
292 /// The bitwise or (`|`) of the bits in `self` and `other`.
293 fn insert(&mut self, other: Self)

Callers 1

caseFunction · 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 1

caseFunction · 0.64