Crates.io | smart-string |
lib.rs | smart-string |
version | 0.1.3 |
source | src |
created_at | 2023-09-19 18:21:43.212565 |
updated_at | 2023-09-21 15:39:40.180539 |
description | A collection of string types and traits designed for enhanced string manipulation. |
homepage | https://github.com/irbis-labs/smart-string |
repository | https://github.com/irbis-labs/smart-string |
max_upload_size | |
id | 977103 |
size | 61,137 |
(sorry, not checked yet)
This library is a collection of string types and traits designed for enhanced string manipulation. It's born out of a need to centralize and avoid code repetition, particularly unsafe operations, from the author's previous projects. While the tools and methods here reflect certain patterns frequently observed in those projects, it's worth noting that the library itself is in its early stages of development.
Currently, Smart String is in active development, and its API might undergo changes. Although it encapsulates tried-and-true patterns from earlier works, the library as a standalone entity is relatively new. Hence, it's advised to use it with caution and feel free to provide feedback, report issues, or suggest improvements.
Not yet covered by tests.
serde
- Enables serde support.PascalString<N>
: A string with a fixed
capacity, either stored on the stack or in-place within larger structures and arrays.DisplayExt
: A suite of methods to
streamline string formatting.SmartString
: A string that dynamically
decides its storage location (stack or heap) based on its length.StringsStack
: A dedicated storage solution for multiple strings, allowing them to be housed within a single
allocation.StringsSet
: A storage medium designed for strings, facilitating both consolidated allocation and utilization
as a hash set.PascalStringLong<N>
: An enhanced variant of PascalString<N>
offering support for capacities up to 2^32-1
bytes, catering to scenarios where a 255-byte limit falls short.no_std
environments.Open to more suggestions!
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.