repeater

Crates.iorepeater
lib.rsrepeater
version0.1.0
sourcesrc
created_at2024-06-18 18:20:24.217261
updated_at2024-06-18 18:20:24.217261
descriptionProc-macro for repeating tokens
homepage
repositoryhttps://github.com/maia-s/repeater-rs
max_upload_size
id1275717
size26,497
Maia (maia-s)

documentation

https://docs.rs/repeater

README

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
Commit count: 9

cargo fmt