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

#421 in Memory management

Download history 2/week @ 2024-07-22 147/week @ 2024-07-29 33/week @ 2024-08-05 167/week @ 2024-08-12 122/week @ 2024-08-19 32/week @ 2024-08-26 16/week @ 2024-09-02 13/week @ 2024-09-16 24/week @ 2024-09-23 123/week @ 2024-10-07 227/week @ 2024-10-14 37/week @ 2024-10-21 30/week @ 2024-10-28 121/week @ 2024-11-04

417 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

~160KB