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

concat_strs

Macro for quickly building a String from components

2 stable releases

1.0.2 Jun 4, 2020

#1656 in Rust patterns

Download history 21/week @ 2024-07-22 15/week @ 2024-07-29 4/week @ 2024-08-05 2/week @ 2024-08-12 1/week @ 2024-08-26 3/week @ 2024-09-02 5/week @ 2024-09-09 14/week @ 2024-09-16 21/week @ 2024-09-23 10/week @ 2024-09-30 31/week @ 2024-10-07 32/week @ 2024-10-14 10/week @ 2024-10-21 15/week @ 2024-10-28 34/week @ 2024-11-04

92 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
~37K SLoC