#symbol #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

#576 in Memory management

Download history 96/week @ 2024-10-20 30/week @ 2024-10-27 120/week @ 2024-11-03 66/week @ 2024-11-10 115/week @ 2024-11-17 96/week @ 2024-11-24 20/week @ 2024-12-01 26/week @ 2024-12-15 136/week @ 2024-12-22 62/week @ 2024-12-29 31/week @ 2025-01-05 7/week @ 2025-01-12 25/week @ 2025-01-19 115/week @ 2025-01-26 39/week @ 2025-02-02

200 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.


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