Crate lit_mod

Source
Expand description

lit-mod is a collection of procedural macros for working with string literals.

§Usage

Add this to your Cargo.toml:

[dependencies]
lit-mod = "0.1"

Macros§

lines
Replaces the literal with a literal of the lines.
remove_lines
Replaces the literal with a literal without the lines.
replace
Replaces all matches of a pattern with another string in a string literal.
slice
Replaces the literal with a slice of the literal.