repeater 0.1.0

Proc-macro for repeating tokens
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 26.15 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 286.08 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • maia-s/repeater-rs
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • maia-s

repeater

This crate provides the repeat! macro, which lets you repeat tokens. In its simplest form, repeat! takes a repeat count and the tokens to repeat:

repeat!(5 => #(repeat this 5 times)*)

See the documentation for more advanced usage, including loop variables, interpolations and nesting.

Future plans

  • Non-integer loop variables, array syntax