2 unstable releases
0.2.0 | Mar 15, 2024 |
---|---|
0.1.0 | Mar 15, 2024 |
#576 in Memory management
200 downloads per month
7KB
131 lines
Box
![Build](https://img.gs/czjpqfbdkz/full/https://github.com/stainless-steel/box/workflows/build/badge.svg)
The package provides a storage for unique static strings.
Example
use r#box::Symbol;
let one = Symbol::new("foo");
let other = Symbol::new("foo");
assert_eq!(one.as_ptr(), other.as_ptr());
Contribution
Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in LICENSE.md.
lib.rs
:
Storage for unique static strings.
Example
use r#box::Symbol;
let one = Symbol::new("foo");
let other = Symbol::new("foo");
assert_eq!(one.as_ptr(), other.as_ptr());
Dependencies
~155KB