estrogen 0.1.0-indev

A proc macro library for compile time string generation.
estrogen-0.1.0-indev doesn't have any documentation.

ESTROGEN

A library for compile time string generation.

Examples

estrogen::repeat

Repeat a string literal some number of times.

use estrogen::repeat;

const SPACES: &'static str = repeat!(8, " ");

assert_eq!(SPACES.len(), 8);
assert_eq!(SPACES, "        ");

estrogen::join

Join strings together with a separator.

use estrogen::join;

const FOOBARBAZ: &'static str = join!("|", ["foo", "bar", "baz"]);

assert_eq!(FOOBARBAZ, "foo|bar|baz");