MCPcopy Create free account

hub / github.com/bitflags/bitflags / functions

Functions241 in github.com/bitflags/bitflags

↓ 33 callersMethodbits
(&self)
examples/macro_free.rs:31
↓ 16 callersMethoditer
Yield a set of contained flags values. Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as
src/traits.rs:231
↓ 9 callersMethodis_empty
Whether all bits in this flags value are unset.
src/traits.rs:257
↓ 7 callersMethodvalue
Get the flags value of this flag. */
src/traits.rs:42
↓ 6 callersFunctionto_writer
Write a flags value as text. Any bits that aren't part of a contained flag will be formatted as a hex number. */
src/parser.rs:42
↓ 5 callersMethodname
Get the name of this flag. If the flag is unnamed then the returned string will be empty. */
src/traits.rs:35
↓ 4 callersMethodclear
Unsets all bits in the flags.
src/traits.rs:332
↓ 4 callersFunctionfrom_str
Parse a flags value from text. This function will fail on any names that don't correspond to defined flags. Unknown bits will be retained. */
src/parser.rs:99
↓ 3 callersMethodinsert
The bitwise or (`|`) of the bits in `self` and `other`.
src/traits.rs:293
↓ 3 callersMethoditer_names
Yield a set of contained named flags values. This method is like [`Flags::iter`], except only yields bits in contained named flags. Any unknown bits,
src/traits.rs:239
↓ 3 callersFunctionto_writer_strict
Write only the contained, defined, named flags in a flags value as text. */
src/parser.rs:165
↓ 2 callersMethodis_named
Whether the flag is named. If [`Flag::name`] returns a non-empty string then this method will return `true`. */
src/traits.rs:51
↓ 2 callersMethodremaining
Get a flags value of any remaining bits that haven't been yielded yet. Once the iterator has finished, this method can be used to check whether or no
src/iter.rs:102
↓ 2 callersMethodremove
The intersection of `self` with the complement of `other` (`&!`). This method is not equivalent to `self & !other` when `other` has unknown bits set.
src/traits.rs:304
↓ 2 callersFunctionto_writer_truncate
Write a flags value as text, ignoring any unknown bits. */
src/parser.rs:142
↓ 1 callersFunctionarbitrary
Generate some arbitrary flags value with only known bits set. */
src/external/arbitrary.rs:8
↓ 1 callersFunctioncase
( value: T, debug: &str, uhex: &str, lhex: &str, oct: &str, bin: &str, )
src/tests/fmt.rs:82
↓ 1 callersFunctioncase
( expected: Option<T::Bits>, input: T::Bits, inherent: impl FnOnce(T::Bits) -> Option<T>, )
src/tests/from_bits.rs:26
↓ 1 callersFunctioncase
( value: T, inputs: &[(T, bool)], mut inherent: impl FnMut(&T, T) -> bool, )
src/tests/intersects.rs:70
↓ 1 callersFunctioncase
(expected: T::Bits, inherent: impl FnOnce() -> T)
src/tests/all_named.rs:15
↓ 1 callersFunctioncase
( expected: T::Bits, value: T, inherent: impl FnOnce(&T) -> T::Bits, )
src/tests/known_bits.rs:33
↓ 1 callersFunctioncase
( expected: T::Bits, value: T, inherent: impl FnOnce(&T) -> T::Bits, )
src/tests/unknown_bits.rs:39
↓ 1 callersFunctioncase
( value: T, inputs: &[(T, T::Bits)], mut inherent: impl FnMut(T, T) -> T, )
src/tests/union.rs:29
↓ 1 callersFunctioncase
(expected: bool, value: T, inherent: impl FnOnce(&T) -> bool)
src/tests/is_empty.rs:23
↓ 1 callersFunctioncase
( value: T, inputs: &[(T, T::Bits)], mut inherent_remove: impl FnMut(&mut T, T), mut inherent_
src/tests/remove.rs:41
↓ 1 callersFunctioncase
( value: T, inputs: &[(T, T::Bits)], mut inherent: impl FnMut(T, T) -> T, )
src/tests/difference.rs:50
↓ 1 callersFunctioncase
( expected: T::Bits, value: T, inherent: impl FnOnce(T) -> T, )
src/tests/complement.rs:38
↓ 1 callersFunctioncase
(expected: T::Bits, inherent: impl FnOnce() -> T)
src/tests/all.rs:17
↓ 1 callersFunctioncase
(expected: T::Bits, input: T::Bits, inherent: impl FnOnce(T::Bits) -> T)
src/tests/from_bits_truncate.rs:26
↓ 1 callersFunctioncase
(expected: Option<T::Bits>, input: &str, inherent: impl FnOnce(&str) -> Option<T>)
src/tests/from_name.rs:26
↓ 1 callersFunctioncase
(expected: bool, value: T, inherent: impl FnOnce(&T) -> bool)
src/tests/unknown.rs:27
↓ 1 callersFunctioncase
( value: T, inputs: &[(T, bool)], mut inherent: impl FnMut(&T, T) -> bool, )
src/tests/contains.rs:87
↓ 1 callersFunctioncase
( value: T, inputs: &[(T, T::Bits)], mut inherent: impl FnMut(T, T) -> T, )
src/tests/intersection.rs:37
↓ 1 callersFunctioncase
( value: T, inputs: &[(T, T::Bits)], mut inherent_sym_diff: impl FnMut(T, T) -> T, mut inheren
src/tests/symmetric_difference.rs:41
↓ 1 callersFunctioncase
(expected: bool, value: T, inherent: impl FnOnce(&T) -> bool)
src/tests/is_all.rs:24
↓ 1 callersFunctioncase
( expected: &[T::Bits], value: T, inherent: impl FnOnce(&T) -> crate::iter::Iter<T>,
src/tests/iter.rs:106
↓ 1 callersFunctioncase
( value: T, inputs: &[(T, T::Bits)], mut inherent_insert: impl FnMut(&mut T, T), mut inherent_
src/tests/insert.rs:32
↓ 1 callersFunctioncase
(expected: T::Bits, inherent: impl FnOnce() -> T)
src/tests/empty.rs:17
↓ 1 callersFunctioncase
(mut flags: T)
src/tests/clear.rs:21
↓ 1 callersFunctioncase
(mut before: T, after: T)
src/tests/truncate.rs:23
↓ 1 callersFunctioncase
(input: T::Bits, inherent: impl FnOnce(T::Bits) -> T)
src/tests/from_bits_retain.rs:22
↓ 1 callersFunctioncase
( expected: T::Bits, value: T, inherent: impl FnOnce(&T) -> T::Bits, )
src/tests/bits.rs:27
↓ 1 callersMethodcomplement_retain
(self)
tests/compile-pass/bitflags_trait_supertrait.rs:59
↓ 1 callersMethodcomplement_retain
(self)
tests/compile-pass/flags_trait_supertrait.rs:59
↓ 1 callersMethodcontains
Whether all set bits in `other` are also set in `self`.
src/traits.rs:277
↓ 1 callersMethoddifference
(self, other: Self)
src/traits.rs:356
↓ 1 callersFunctionhas_uncorresponding_bits
(flags: B)
tests/compile-pass/bitflags_trait_supertrait.rs:74
↓ 1 callersFunctionhas_uncorresponding_bits
(flags: B)
tests/compile-pass/flags_trait_supertrait.rs:74
↓ 1 callersMethodhas_uncorresponding_bits
(self)
tests/compile-pass/bitflags_trait_supertrait.rs:63
↓ 1 callersMethodhas_uncorresponding_bits
(self)
tests/compile-pass/flags_trait_supertrait.rs:63
↓ 1 callersMethodintersects
Whether any set bits in `other` are also set in `self`.
src/traits.rs:269
↓ 1 callersMethodsymmetric_difference
(self, other: Self)
src/traits.rs:362
↓ 1 callersMethodtruncate
Remove any unknown bits from the flags.
src/traits.rs:285
↓ 1 callersMethodunion
(self, other: Self)
src/traits.rs:347
↓ 1 callersMethodunknown_bits
Get the unknown bits from a flags value.
src/traits.rs:173
↓ 1 callersFunctionuses_bitflags2
(f: B)
tests/compile-pass/bitflags_trait_to_flags.rs:17
↓ 1 callersFunctionuses_flags2
(f: B)
tests/compile-pass/bitflags_trait_to_flags.rs:13
↓ 1 callersMethodwrite_hex
(&self, mut writer: W)
tests/compile-fail/bitflags_custom_bits.rs:127
Method__private_const_new
(flags: &'static [Flag<B>], source: B, remaining: B)
src/iter.rs:30
Methodall
Get a flags value with all known bits set.
src/traits.rs:145
Functionall_from_trait
()
tests/compile-pass/flags_trait_precedence.rs:9
Functionall_from_trait
()
tests/compile-pass/bitflags_trait_precedence.rs:17
Methodall_named
Get a flags value with all bits from named flags set. This method is equivalent to [`Flags::all`] unless [`Flags::FLAGS`] contains unnamed flags.
src/traits.rs:158
Methodbitand
(self, other: Self)
tests/compile-fail/bitflags_custom_bits.rs:37
Methodbitand
(self, other: Self)
examples/custom_bits_type.rs:27
Methodbitand_assign
(&mut self, other: Self)
tests/compile-fail/bitflags_custom_bits.rs:59
Methodbitor
(self, other: Self)
tests/compile-fail/bitflags_custom_bits.rs:45
Methodbitor
(self, other: Self)
examples/custom_bits_type.rs:39
Methodbitor_assign
(&mut self, other: Self)
tests/compile-fail/bitflags_custom_bits.rs:65
Methodbits
(&self)
examples/custom_bits_type.rs:86
Methodbitxor
(self, other: Self)
tests/compile-fail/bitflags_custom_bits.rs:53
Methodbitxor
(self, other: Self)
examples/custom_bits_type.rs:51
Methodbitxor_assign
(&mut self, other: Self)
tests/compile-fail/bitflags_custom_bits.rs:71
Functioncases
()
src/tests/fmt.rs:4
Functioncases
()
src/tests/from_bits.rs:6
Functioncases
()
src/tests/extend.rs:4
Functioncases
()
src/tests/parser.rs:128
Functioncases
()
src/tests/intersects.rs:6
Functioncases
()
src/tests/all_named.rs:6
Functioncases
()
src/tests/known_bits.rs:6
Functioncases
()
src/tests/unknown_bits.rs:6
Functioncases
()
src/tests/union.rs:6
Functioncases
()
src/tests/is_empty.rs:6
Functioncases
()
src/tests/remove.rs:6
Functioncases
()
src/tests/eq.rs:4
Functioncases
()
src/tests/difference.rs:6
Functioncases
()
src/tests/complement.rs:6
Functioncases
()
src/tests/all.rs:6
Functioncases
()
src/tests/from_bits_truncate.rs:6
Functioncases
()
src/tests/from_name.rs:6
Functioncases
()
src/tests/unknown.rs:6
Functioncases
()
src/tests/flag_name.rs:6
Functioncases
()
src/tests/contains.rs:6
Functioncases
()
src/tests/intersection.rs:6
Functioncases
()
src/tests/flags.rs:6
Functioncases
()
src/tests/symmetric_difference.rs:6
Functioncases
()
src/tests/is_all.rs:6
Functioncases
()
src/tests/iter.rs:29
Functioncases
()
src/tests/insert.rs:6
Functioncases
()
src/tests/empty.rs:6
next →1–100 of 241, ranked by callers