#string #macro #component #quickly #building #concat

concat_strs

Macro for quickly building a String from components

2 stable releases

1.0.2 Jun 4, 2020

#1690 in Rust patterns

Download history 19/week @ 2024-03-12 9/week @ 2024-03-19 18/week @ 2024-03-26 39/week @ 2024-04-02 7/week @ 2024-04-09 3/week @ 2024-04-16 13/week @ 2024-04-23 2/week @ 2024-05-07 8/week @ 2024-05-14 5/week @ 2024-05-21 4/week @ 2024-05-28 19/week @ 2024-06-04 28/week @ 2024-06-11 15/week @ 2024-06-18 6/week @ 2024-06-25

72 downloads per month

AGPL-3.0

4KB

concat_strs

docs.rs crates.io license: AGPL-3.0 github.com/9999years/concat_strs

Provides the concat_strs! macro, which allows quickly building a String from a number of components.

Example usage:

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.

Dependencies

~1.5MB
~35K SLoC