Crates.io | text-block-macros |
lib.rs | text-block-macros |
version | 0.2.0 |
source | src |
created_at | 2021-04-08 10:49:56.310962 |
updated_at | 2024-10-29 21:16:47.089101 |
description | Create a multiline string literal |
homepage | |
repository | https://github.com/KSXGitHub/text-block-macros.git |
max_upload_size | |
id | 380790 |
size | 5,778 |
Create a multiline string literal.
use text_block_macros::text_block;
let text = text_block! {
"abc"
"def"
"ghi"
};
assert_eq!(text, "abc\ndef\nghi");
use text_block_macros::text_block_fnl;
let text = text_block_fnl! {
"abc"
"def"
"ghi"
};
assert_eq!(text, "abc\ndef\nghi\n");