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

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