MCPcopy Create free account

hub / github.com/bitflags/bitflags / functions

Functions241 in github.com/bitflags/bitflags

Functioncases
()
src/tests/clear.rs:6
Functioncases
()
src/tests/truncate.rs:6
Functioncases
()
src/tests/from_bits_retain.rs:6
Functioncases
()
src/tests/bits.rs:6
Methodcomplement
(self)
src/traits.rs:368
Methodcontains_unknown_bits
This method will return `true` if any unknown bits are set.
src/traits.rs:178
Functioncount_flags
(flags: &F)
tests/compile-pass/flags_trait_generic_iter.rs:10
Functioncount_flags
(flags: &F)
tests/compile-pass/bitflags_trait_generic_iter.rs:12
Functiondeserialize
Deserialize a set of flags from a human-readable string or their underlying bits. Any unknown bits will be retained. */
src/external/serde.rs:37
Methodempty
Get a flags value with all bits unset.
src/traits.rs:140
Methodempty_flag
A hex or named flag wasn't found between separators.
src/parser.rs:294
Methodeq
(&self, other: &Self)
examples/custom_bits_type.rs:19
Methodexpecting
(&self, formatter: &mut fmt::Formatter<'_>)
src/external/serde.rs:51
Functionfail
()
tests/compile.rs:8
Functionflag_to_string
(flag: Flags)
src/tests/bitflags_match.rs:11
Functionflags
()
tests/compile-pass/visibility.rs:12
Methodfmt
(&self, f: &mut fmt::Formatter)
benches/parse.rs:34
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/parser.rs:88
Methodfmt
(&self, f: &mut fmt::Formatter)
tests/compile-fail/bitflags_custom_bits.rs:85
Methodfmt
(&self, f: &mut fmt::Formatter)
examples/fmt.rs:19
Methodfmt
(&self, f: &mut fmt::Formatter)
examples/macro_free.rs:51
Functionformat
(flags: B)
tests/compile-pass/parser_strict_non_hex_bits.rs:3
Functionformat_flags_10_present
(b: &mut test::Bencher)
benches/parse.rs:50
Functionformat_flags_1_present
(b: &mut test::Bencher)
benches/parse.rs:40
Functionformat_flags_5_present
(b: &mut test::Bencher)
benches/parse.rs:45
Methodfrom
(v: u32)
tests/compile-pass/bitflags_trait_precedence.rs:12
Methodfrom
(v: u32)
tests/compile-pass/impl_convert_from_bits.rs:10
Methodfrom_bits
Convert from a bits value. This method will return `None` if any unknown bits are set.
src/traits.rs:190
Methodfrom_bits_retain
(bits: u32)
examples/macro_free.rs:35
Methodfrom_bits_retain
(bits: Self::Bits)
examples/custom_bits_type.rs:90
Methodfrom_bits_truncate
Convert from a bits value, unsetting any unknown bits.
src/traits.rs:201
Methodfrom_name
Get a flags value with the bits of a flag with the given name set. This method will return `None` if `name` is empty or doesn't correspond to any nam
src/traits.rs:212
Methodfrom_str
(flags: &str)
benches/parse.rs:28
Methodfrom_str
(flags: &str)
examples/fmt.rs:33
Methodfrom_str
(input: &str)
examples/macro_free.rs:44
Functionfrom_str_strict
Parse a flags value from text. This function will fail on any names that don't correspond to defined flags. This function will fail to parse hex valu
src/parser.rs:189
Functionfrom_str_truncate
Parse a flags value from text. This function will fail on any names that don't correspond to defined flags. Unknown bits will be ignored. */
src/parser.rs:155
Methodintersection
(self, other: Self)
src/traits.rs:341
Functioninvalid
()
src/tests/parser.rs:103
Methodinvalid_hex_flag
An invalid hex flag was encountered.
src/parser.rs:266
Methodinvalid_named_flag
A named flag that doesn't correspond to any on the flags type was encountered.
src/parser.rs:280
Methodis_all
Whether all known bits in this flags value are set.
src/traits.rs:262
Methodis_unnamed
Whether the flag is unnamed. If [`Flag::name`] returns a non-empty string then this method will return `false`. */
src/traits.rs:60
Methoditer_defined_names
Yield a set of all named flags defined by [`Self::FLAGS`].
src/traits.rs:244
Methoditer_equal_names
Get an iterator over all defined names for this flags value. This iterator will yield all defined names for the flags value, including any convenienc
src/traits.rs:252
Methodknown_bits
Get the known bits from a flags value.
src/traits.rs:168
Functionmain
()
tests/compile-pass/impl_attrs.rs:13
Functionmain
()
tests/compile-pass/repro_486.rs:38
Functionmain
()
tests/compile-pass/into_iter_trait_wrapped.rs:20
Functionmain
()
tests/compile-pass/repr_c.rs:10
Functionmain
()
tests/compile-pass/flags_trait_bound_bitflags.rs:17
Functionmain
()
tests/compile-pass/flags_trait_precedence.rs:13
Functionmain
()
tests/compile-pass/bitflags_trait_bound_flags.rs:17
Functionmain
()
tests/compile-pass/redefined_value.rs:14
Functionmain
()
tests/compile-pass/flags_trait_generic_iter.rs:14
Functionmain
()
tests/compile-pass/multi.rs:20
Functionmain
()
tests/compile-pass/impl_eq.rs:10
Functionmain
()
tests/compile-pass/deprecated.rs:14
Functionmain
()
tests/compile-pass/missing_docs.rs:19
Functionmain
()
tests/compile-pass/impl_repr_packed.rs:13
Functionmain
()
tests/compile-pass/repr_transparent.rs:10
Functionmain
()
tests/compile-pass/bitflags_trait_precedence.rs:21
Functionmain
()
tests/compile-pass/nested_value.rs:13
Functionmain
()
tests/compile-pass/impl_default.rs:10
Functionmain
()
tests/compile-pass/no_prelude.rs:14
Functionmain
()
tests/compile-pass/path_based_bits.rs:14
Functionmain
()
tests/compile-pass/impl_convert_from_bits.rs:15
Functionmain
()
tests/compile-pass/repro_343.rs:314
Functionmain
()
tests/compile-pass/item_positions.rs:40
Functionmain
()
tests/compile-pass/shadow_const.rs:11
Functionmain
()
tests/compile-pass/repro_265.rs:15
Functionmain
()
tests/compile-pass/flag_name.rs:11
Functionmain
()
tests/compile-pass/shadow_macros.rs:22
Functionmain
()
tests/compile-pass/bitflags_trait_supertrait.rs:78
Functionmain
()
tests/compile-pass/parser_strict_non_hex_bits.rs:11
Functionmain
()
tests/compile-pass/bitflags_trait_to_flags.rs:29
Functionmain
()
tests/compile-pass/impl_fmt.rs:10
Functionmain
()
tests/compile-pass/shadow_core.rs:14
Functionmain
()
tests/compile-pass/unnamed.rs:23
Functionmain
()
tests/compile-pass/doc_alias.rs:12
Functionmain
()
tests/compile-pass/impl_copy.rs:10
Functionmain
()
tests/compile-pass/flags_trait_supertrait.rs:78
Functionmain
()
tests/compile-pass/non_snake_case.rs:13
Functionmain
()
tests/compile-pass/impl_new.rs:15
Functionmain
()
tests/compile-pass/self_in_value.rs:13
Functionmain
()
tests/compile-pass/bitflags_trait_generic_iter.rs:16
Functionmain
()
tests/compile-pass/visibility.rs:17
Functionmain
()
tests/smoke-test/src/main.rs:67
Functionmain
()
tests/compile-fail/bitflags_trait_custom.rs:9
Functionmain
()
tests/compile-fail/bitflags_trait_deprecated.rs:5
Functionmain
()
tests/compile-fail/bitflags_custom_bits.rs:140
Functionmain
()
tests/compile-fail/bitflags_match_missing_default.rs:18
Functionmain
()
tests/compile-fail/bitflags_pub_const.rs:9
Functionmain
()
tests/compile-fail/bitflags_flag_name_non_str.rs:10
Functionmain
()
tests/compile-fail/access_outside_visibility.rs:15
Functionmain
()
tests/compile-fail/unnamed_const.rs:11
Functionmain
()
tests/compile-fail/bitflags_flag_name_empty.rs:10
Functionmain
()
examples/fmt.rs:38
Functionmain
()
examples/serde.rs:6
Functionmain
()
examples/macro_free.rs:56
← previousnext →101–200 of 241, ranked by callers