imstr
imstr copied to clipboard
Immutable strings, in Rust.
I have a use case where I want to manually create a slice into a source string by setting the final string content and the original offset. When I want...
```toml imstr = { version = "0.2.0", features = ["serde"] } ``` ```rust #[derive(Debug, Serialize, Deserialize)] pub struct ResponseGeneric { pub message: Option } ``` ```shell pub message: Option, |...
Hey, seems like all the features in this library can be achieved via the use of rust string and &str slice. So anything I missed? Thx.
Some people on Reddit pointed out that it might make sense to store data in an `Arc` rather than an `Arc`.
Add integration with crate behind feature flag.
To prevent needing an allocation, add an optimisation that will simple use a globally shared Arc with an empty string. Needs benchmarking to make sure this make sense.
Add integration with `diffus` crate behind feature flag.
Add a `leak()` API to get a static string slice.