#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

#1791 in Rust patterns

Download history 17/week @ 2024-11-13 27/week @ 2024-11-20 40/week @ 2024-11-27 68/week @ 2024-12-04 59/week @ 2024-12-11 25/week @ 2024-12-18 7/week @ 2024-12-25 3/week @ 2025-01-01 38/week @ 2025-01-08 28/week @ 2025-01-15 15/week @ 2025-01-22 16/week @ 2025-01-29 39/week @ 2025-02-05 26/week @ 2025-02-12 23/week @ 2025-02-19 13/week @ 2025-02-26

105 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
~38K SLoC