kazcw/simble
Simple, tiny symbols in Rust.
{ "createdAt": "2018-07-02T06:20:40Z", "defaultBranch": "master", "description": "Simple, tiny symbols in Rust.", "fullName": "kazcw/simble", "homepage": null, "language": "Rust", "name": "simble", "pushedAt": "2019-10-29T20:30:09Z", "stargazersCount": 2, "topics": [], "updatedAt": "2019-10-29T20:29:09Z", "url": "https://github.com/kazcw/simble"}Simble
Section titled “Simble”Simple, tiny symbols. Human-readable strings up to 8 bytes long that can be stored inline and manipulated efficiently.
Why would I want this?
Section titled “Why would I want this?”If:
- you are working with human-readable strings that never exceed 8 bytes
- the set of strings is not fixed at compile time, so you can’t use an
enum
Then Simble offers:
- efficient storage
- fast comparisons and hashing
Optional features
Section titled “Optional features”serde:LexicalandPrintableboth serialize/deserialize like a restricted String
Current nightly features
Section titled “Current nightly features”Enable with the nightly feature:
- const fns, so that you can define symbols that will be parsed at compile time