Macro for_args
Source macro_rules! for_args {
($iter:expr; $match:tt) => { ... };
}
Expand description
Matches each part of each argument in a &str
iterator (like env::args
),
using the match_arg
macro.
Expands to:
ⓘwhile let Some(args) in $iter.next() {
for arg in args.as_arg() {
match arg { $match }
}
}