#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

#217 in Memory management

Download history 308/week @ 2024-03-13 65/week @ 2024-03-20 17/week @ 2024-03-27 33/week @ 2024-04-03 189/week @ 2024-04-10 124/week @ 2024-04-17 152/week @ 2024-04-24 104/week @ 2024-05-01 161/week @ 2024-05-08 137/week @ 2024-05-15 194/week @ 2024-05-22 187/week @ 2024-05-29 23/week @ 2024-06-05 172/week @ 2024-06-12

581 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

~170KB