#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

#548 in Memory management

Download history 100/week @ 2024-11-13 132/week @ 2024-11-20 48/week @ 2024-11-27 2/week @ 2024-12-04 7/week @ 2024-12-11 105/week @ 2024-12-18 109/week @ 2024-12-25 3/week @ 2025-01-01 37/week @ 2025-01-08 21/week @ 2025-01-15 37/week @ 2025-01-22 115/week @ 2025-01-29 7/week @ 2025-02-05 39/week @ 2025-02-12 109/week @ 2025-02-19 38/week @ 2025-02-26

198 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