Skip to content
Oeiuwq Faith Blog OpenSource Porfolio

kazcw/simble

Simple, tiny symbols in Rust.

kazcw/simble.json
{
"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"
}

Simple, tiny symbols. Human-readable strings up to 8 bytes long that can be stored inline and manipulated efficiently.

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
  • serde: Lexical and Printable both serialize/deserialize like a restricted String

Enable with the nightly feature:

  • const fns, so that you can define symbols that will be parsed at compile time