Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bitflags/bitflags
/ functions
Functions
241 in github.com/bitflags/bitflags
⨍
Functions
241
◇
Types & classes
34
Function
cases
()
src/tests/clear.rs:6
Function
cases
()
src/tests/truncate.rs:6
Function
cases
()
src/tests/from_bits_retain.rs:6
Function
cases
()
src/tests/bits.rs:6
Method
complement
(self)
src/traits.rs:368
Method
contains_unknown_bits
This method will return `true` if any unknown bits are set.
src/traits.rs:178
Function
count_flags
(flags: &F)
tests/compile-pass/flags_trait_generic_iter.rs:10
Function
count_flags
(flags: &F)
tests/compile-pass/bitflags_trait_generic_iter.rs:12
Function
deserialize
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
Method
empty
Get a flags value with all bits unset.
src/traits.rs:140
Method
empty_flag
A hex or named flag wasn't found between separators.
src/parser.rs:294
Method
eq
(&self, other: &Self)
examples/custom_bits_type.rs:19
Method
expecting
(&self, formatter: &mut fmt::Formatter<'_>)
src/external/serde.rs:51
Function
fail
()
tests/compile.rs:8
Function
flag_to_string
(flag: Flags)
src/tests/bitflags_match.rs:11
Function
flags
()
tests/compile-pass/visibility.rs:12
Method
fmt
(&self, f: &mut fmt::Formatter)
benches/parse.rs:34
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/parser.rs:88
Method
fmt
(&self, f: &mut fmt::Formatter)
tests/compile-fail/bitflags_custom_bits.rs:85
Method
fmt
(&self, f: &mut fmt::Formatter)
examples/fmt.rs:19
Method
fmt
(&self, f: &mut fmt::Formatter)
examples/macro_free.rs:51
Function
format
(flags: B)
tests/compile-pass/parser_strict_non_hex_bits.rs:3
Function
format_flags_10_present
(b: &mut test::Bencher)
benches/parse.rs:50
Function
format_flags_1_present
(b: &mut test::Bencher)
benches/parse.rs:40
Function
format_flags_5_present
(b: &mut test::Bencher)
benches/parse.rs:45
Method
from
(v: u32)
tests/compile-pass/bitflags_trait_precedence.rs:12
Method
from
(v: u32)
tests/compile-pass/impl_convert_from_bits.rs:10
Method
from_bits
Convert from a bits value. This method will return `None` if any unknown bits are set.
src/traits.rs:190
Method
from_bits_retain
(bits: u32)
examples/macro_free.rs:35
Method
from_bits_retain
(bits: Self::Bits)
examples/custom_bits_type.rs:90
Method
from_bits_truncate
Convert from a bits value, unsetting any unknown bits.
src/traits.rs:201
Method
from_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
Method
from_str
(flags: &str)
benches/parse.rs:28
Method
from_str
(flags: &str)
examples/fmt.rs:33
Method
from_str
(input: &str)
examples/macro_free.rs:44
Function
from_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
Function
from_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
Method
intersection
(self, other: Self)
src/traits.rs:341
Function
invalid
()
src/tests/parser.rs:103
Method
invalid_hex_flag
An invalid hex flag was encountered.
src/parser.rs:266
Method
invalid_named_flag
A named flag that doesn't correspond to any on the flags type was encountered.
src/parser.rs:280
Method
is_all
Whether all known bits in this flags value are set.
src/traits.rs:262
Method
is_unnamed
Whether the flag is unnamed. If [`Flag::name`] returns a non-empty string then this method will return `false`. */
src/traits.rs:60
Method
iter_defined_names
Yield a set of all named flags defined by [`Self::FLAGS`].
src/traits.rs:244
Method
iter_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
Method
known_bits
Get the known bits from a flags value.
src/traits.rs:168
Function
main
()
tests/compile-pass/impl_attrs.rs:13
Function
main
()
tests/compile-pass/repro_486.rs:38
Function
main
()
tests/compile-pass/into_iter_trait_wrapped.rs:20
Function
main
()
tests/compile-pass/repr_c.rs:10
Function
main
()
tests/compile-pass/flags_trait_bound_bitflags.rs:17
Function
main
()
tests/compile-pass/flags_trait_precedence.rs:13
Function
main
()
tests/compile-pass/bitflags_trait_bound_flags.rs:17
Function
main
()
tests/compile-pass/redefined_value.rs:14
Function
main
()
tests/compile-pass/flags_trait_generic_iter.rs:14
Function
main
()
tests/compile-pass/multi.rs:20
Function
main
()
tests/compile-pass/impl_eq.rs:10
Function
main
()
tests/compile-pass/deprecated.rs:14
Function
main
()
tests/compile-pass/missing_docs.rs:19
Function
main
()
tests/compile-pass/impl_repr_packed.rs:13
Function
main
()
tests/compile-pass/repr_transparent.rs:10
Function
main
()
tests/compile-pass/bitflags_trait_precedence.rs:21
Function
main
()
tests/compile-pass/nested_value.rs:13
Function
main
()
tests/compile-pass/impl_default.rs:10
Function
main
()
tests/compile-pass/no_prelude.rs:14
Function
main
()
tests/compile-pass/path_based_bits.rs:14
Function
main
()
tests/compile-pass/impl_convert_from_bits.rs:15
Function
main
()
tests/compile-pass/repro_343.rs:314
Function
main
()
tests/compile-pass/item_positions.rs:40
Function
main
()
tests/compile-pass/shadow_const.rs:11
Function
main
()
tests/compile-pass/repro_265.rs:15
Function
main
()
tests/compile-pass/flag_name.rs:11
Function
main
()
tests/compile-pass/shadow_macros.rs:22
Function
main
()
tests/compile-pass/bitflags_trait_supertrait.rs:78
Function
main
()
tests/compile-pass/parser_strict_non_hex_bits.rs:11
Function
main
()
tests/compile-pass/bitflags_trait_to_flags.rs:29
Function
main
()
tests/compile-pass/impl_fmt.rs:10
Function
main
()
tests/compile-pass/shadow_core.rs:14
Function
main
()
tests/compile-pass/unnamed.rs:23
Function
main
()
tests/compile-pass/doc_alias.rs:12
Function
main
()
tests/compile-pass/impl_copy.rs:10
Function
main
()
tests/compile-pass/flags_trait_supertrait.rs:78
Function
main
()
tests/compile-pass/non_snake_case.rs:13
Function
main
()
tests/compile-pass/impl_new.rs:15
Function
main
()
tests/compile-pass/self_in_value.rs:13
Function
main
()
tests/compile-pass/bitflags_trait_generic_iter.rs:16
Function
main
()
tests/compile-pass/visibility.rs:17
Function
main
()
tests/smoke-test/src/main.rs:67
Function
main
()
tests/compile-fail/bitflags_trait_custom.rs:9
Function
main
()
tests/compile-fail/bitflags_trait_deprecated.rs:5
Function
main
()
tests/compile-fail/bitflags_custom_bits.rs:140
Function
main
()
tests/compile-fail/bitflags_match_missing_default.rs:18
Function
main
()
tests/compile-fail/bitflags_pub_const.rs:9
Function
main
()
tests/compile-fail/bitflags_flag_name_non_str.rs:10
Function
main
()
tests/compile-fail/access_outside_visibility.rs:15
Function
main
()
tests/compile-fail/unnamed_const.rs:11
Function
main
()
tests/compile-fail/bitflags_flag_name_empty.rs:10
Function
main
()
examples/fmt.rs:38
Function
main
()
examples/serde.rs:6
Function
main
()
examples/macro_free.rs:56
← previous
next →
101–200 of 241, ranked by callers