[−][src]Crate macro_helper
This crate is a collection of ligthweight procedural macros typically used for writing others,either procedural or not,as such covers some of the missing features you might expect from macro_rules! like expansion bucles controlled by you and not an input.Or guarantee an identifier is borrowed in the manner you want over any other,included own.
This crate is no_std.
Macros
as_mut_ref_token | Ensures that the reference or identifier passed is mutable and changes it if is not. |
as_ref_token | Ensures that the reference or identifier passed is shared and changes it if is not. |
eval_encoded | Eval encoded strings that maybe are from other macros. |
expansion_bucle | An expansion bucle with syntax code => num when num is the number of times the code should be expanded. |
expansion_bucle_counted | An expansion bucle with syntax code => num when num is the number of times the code should be expanded along with a declaration of the rep_count integer variable at start of each "iteration" counting them from 0 thought num-1. |