treentern 0.1.1

An interning library that makes it easy to intern tree like types
Documentation
  • Coverage
  • 9.09%
    1 out of 11 items documented0 out of 8 items with examples
  • Size
  • Source code size: 6.99 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.99 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • TheLazyDutchman

Treentern

This is an interning library.

Basic usage

let a = "Hello, World".intern();
let b = "Hello, World".intern();

assert_eq!(a.as_ptr(), b.as_ptr());

As compared to other implementations, this library aims to need no unsafe code. It does this by having a separate arena for every type that implements the Intern trait.

Still, it is probably a better choice to pick another interning library (for now), as this is mostly written as a way to learn how interning works.