tinystr icon indicating copy to clipboard operation
tinystr copied to clipboard

A small ASCII-only bounded length string representation.

Results 8 tinystr issues
Sort by recently updated
recently updated
newest added

`String` is 24 bytes large, but because `TinyStrAuto` is a regular Rust `enum`, it adds an extra usize for the tag, so it's *larger* than a regular string. Not tiny...

Currently tinystr both depends on crates from ICU4X (`zerovec`) and is depended on by crates from ICU4X (a lot of them). This means that any time zerovec has a breaking...

It has this: ``` let s5: TinyStrAuto = "longFallbackToHeap".parse().unwrap(); assert!(matches!(s4, TinyStrAuto::Heap { .. })); assert_eq!(s4, "shortNoAlloc"); ``` It looks like this block should be referring to s5 instead of s4.

The sketchy string literal parser is now less sketchy! If a string with escape sequences is passed to any macro this patch will parse the escapes. It will parse all...

On Rust Nightly, I got the following pattern match to work: ```rust const FOO: TinyStr16 = tinystr16!("foo"); const BAR: TinyStr16 = tinystr16!("bar"); match tinystr_input { FOO => /* ... */,...

I am not quite following the argument that prevents the empty string from being a thing? I get that there's probably a reason, but I didn't spot it in a...

question

If you look at my [merge-types](/BartMassey/tinystr/tree/merge-types) branch you will find a bunch of macro work to replace the multiple implementation files with a single common one. Benchmarking indicates performance is...

enhancement

The current benchmark for equality testing runs about 256 tests. This is OK for comparison, but gives a highly inflated view of how long an equality test takes. Not sure...