Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/9999years/concat_strs
Rust macro for quickly building a string from components.
https://github.com/9999years/concat_strs
Last synced: 2 months ago
JSON representation
Rust macro for quickly building a string from components.
- Host: GitHub
- URL: https://github.com/9999years/concat_strs
- Owner: 9999years
- License: agpl-3.0
- Created: 2020-06-03T23:03:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-09-26T21:05:00.000Z (over 4 years ago)
- Last Synced: 2024-10-09T09:44:58.287Z (3 months ago)
- Language: Rust
- Homepage: https://docs.rs/concat_strs/
- Size: 27.3 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# concat_strs
[![docs.rs](https://docs.rs/concat_strs/badge.svg)](https://docs.rs/concat_strs/1.0.0/concat_strs/)
[![crates.io](https://img.shields.io/crates/v/concat_strs.svg)](https://crates.io/crates/concat_strs)
[![license: AGPL-3.0](https://img.shields.io/github/license/9999years/concat_strs)](https://www.gnu.org/licenses/agpl-3.0.en.html)
[![github.com/9999years/concat_strs](https://img.shields.io/badge/GitHub-9999years%2Fconcat__strs-blue)](https://github.com/9999years/concat_strs)Provides the `concat_strs!` macro, which allows quickly building a `String`
from a number of components.Example usage:
```rust
use concat_strs::concat_strs;assert_eq!(
"foo_bar_3.0",
concat_strs!(
"foo",
'_',
"bar",
'_',
3.0,
)
);
```This is [the fastest way to build a string from components][concat-benches].
[concat-benches]: https://github.com/hoodie/concatenation_benchmarks-rs