Giter Site home page Giter Site logo

enum-collections's People

Contributors

pscheidl avatar specificprotagonist avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

enum-collections's Issues

Implement Eq and PartialEq

Since the underlying arrays are the same size (not growing at runtime) and key indices are always the same, values must be compared. Therefore, Eq shouldn't be required to be implemented for the enum (the keys) itself.

Store data inline

Instead of performing a heap allocation, the backing array could be stored inline, avoiding a layer of indirection. Users for who
want the indirection can simply wrap the map/table in a Box. This provides a more composable API.

Unfortunately I'm not sure if this is possible before const_generics_expr gets stabilized.

Add Contributing.md

  • Conventional commits
  • Explain version bumping
  • Describe checks & benchmarks

Benchmarks run in CI

Currently, benchmarks must be manually triggered. Find a way to run benchmarks in CI, ensuring resources allocation is the same (if possible).

Please impl common traits such as `Debug`

Though we can build a new wrapper for EnumTable/EnumMap when using it, it's better if you could impl it in this crate :)

Or simply provide an interface Into<HashMap>, it would be helpful for debug/serialization.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.