MCPcopy Index your code
hub / github.com/Lymia/enumset

github.com/Lymia/enumset @v1.1.13

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1.13 ↗ · + Follow
391 symbols 600 edges 42 files 49 documented · 13% updated 50d ago★ 1263 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

enumset

Build Status Latest Version Requires rustc 1.71+ Rust Documentation

A library for defining enums that can be used in compact bit sets. It supports serde and #[no_std] environments, and has basic support for using EnumSets in constants.

See the documentation for more information.

License

This project is licensed under either of

  • Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in enumset by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Extension points exported contracts — how you extend this code

EnumSetConstHelper (Interface)
Retrieves a helper type for constant time operations on `EnumSet`s. [1 implementers]
enumset/src/traits.rs
EnumSetTypeRepr (Interface)
A trait marking valid underlying bitset storage types and providing the operations `EnumSet` and related types use. # S [1 …
enumset/src/repr/mod.rs
EnumSetType (Interface)
The trait used to define enum types that may be used with [`EnumSet`]. This trait must be implemented using `#[derive(E
enumset/src/traits.rs
EnumSetTypeWithRepr (Interface)
An [`EnumSetType`] for which [`EnumSet`]s have a guaranteed in-memory representation. An implementation of this trait i
enumset/src/traits.rs
EnumSetTypePrivate (Interface)
The actual members of EnumSetType. Put here to avoid polluting global namespaces.
enumset/src/traits.rs

Core symbols most depended-on inside this repo

new
called by 32
enumset/src/macros.rs
error
called by 25
enumset_derive/src/lib.rs
insert_bit
called by 22
enumset/src/impl_set_mixed.rs
iter
called by 18
enumset/src/impl_set.rs
eval_bin
called by 10
enumset_derive/src/const_eval.rs
is_empty
called by 10
enumset/src/repr/array.rs
extend
called by 6
enumset/src/impl_set_mixed.rs
and_not
called by 5
enumset/src/repr/array.rs

Shape

Enum 154
Method 148
Function 70
Class 13
Interface 6

Languages

Rust100%

Modules by API surface

enumset/src/repr/array.rs50 symbols
enumset/src/impl_set.rs41 symbols
enumset_test/tests/bitset_basic_ops.rs37 symbols
enumset/src/impl_set_mixed.rs37 symbols
enumset_derive/src/plan.rs27 symbols
enumset_test/tests/mixedset_basic_ops.rs25 symbols
enumset_test_trybuild/tests/compile-pass/2025-08-19_serialize-and-repr.rs20 symbols
enumset_test/tests/bitset_serde_ops.rs13 symbols
enumset_test/examples/compilation_test.rs11 symbols
enumset_test_trybuild/tests/compile-pass/test_hygiene.rs8 symbols
enumset_test_trybuild/tests/compile-pass/no_std.rs8 symbols
enumset_test_trybuild/tests/compile-pass/no_imports.rs8 symbols

For agents

$ claude mcp add enumset \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact