ustr
ustr copied to clipboard
Fast, FFI-friendly string interning for Rust
Hi. I'm not sure if this is intentional or not but the Display implementation ignores all formatting parameters ```rust println!("ab{:>2}", "c"); //prints "ab c" println!("ab{:>2}", Ustr::from_str("c").unwrap()); //prints "abc" ``` I...
We need a way to check if key is in the UstrMap without actually creating ustr, think of a user input and i want to check if the search term...
This adds a bunch of trait implementations that make `Ustr` more usable with other string-ish types.
Hello, I am implementing a tool that deals with case-insensitive programming languages (Ada in particular, but also a custom DSL from another company). I wonder whether you have given any...
Currently, extern functions `ustr_len` and `ustr_hash` involve an extern function call, which is usually much slower compared to inlined function in C, considering inlined functions like these can be optimized...
## Problem By only providing a global cache, the "address spaces" of any two different (serializable) data structures relying on `Ustr` will be wed. The only way to actually use...
What do you think on support `#[no_std]`?
- Fix Clippy's warnings. - Fix Miri's integer-to-pointer cast warning and the borrow stack error. - Fix a panic in `string_cache_iter()` if the string cache is empty, and add a...
In the following case, the NewType wrapped `Ustr` doesn't work ergonomically with HashMap though with `Borrow` being implemented because the hash value of `&str` is different from the hash value...