treentern

Crates.iotreentern
lib.rstreentern
version0.1.1
sourcesrc
created_at2024-08-11 19:53:51.33779
updated_at2024-08-12 10:49:27.837646
descriptionAn interning library that makes it easy to intern tree like types
homepage
repository
max_upload_size
id1333607
size7,100
(TheLazyDutchman)

documentation

README

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.

Commit count: 0

cargo fmt