#symbols #string #unique #static #storage

box

The package provides a storage for unique static strings

2 unstable releases

0.2.0 Mar 15, 2024
0.1.0 Mar 15, 2024

#472 in Memory management

Download history 6/week @ 2025-03-10 27/week @ 2025-03-17 3/week @ 2025-03-24 52/week @ 2025-03-31 5/week @ 2025-04-07 6/week @ 2025-05-05 73/week @ 2025-05-12 31/week @ 2025-05-19 63/week @ 2025-05-26 15/week @ 2025-06-02 90/week @ 2025-06-09 25/week @ 2025-06-16 39/week @ 2025-06-23

170 downloads per month

Apache-2.0/MIT

7KB
131 lines

Box Package Documentation Build

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.

Dependencies

~150KB