dynarg
A simple dynamic argument system
Basic example
use Args;
Less basic example
use ;
/// Where normally you'd need to have a fixed set of arguments, each of which would be roughly fixed types
/// -- you can dynamically push arguments on the fly instead.
/// This is useful when you need a consistent function signature for different types of functions,
/// each needing different arguments
/// A custom struct as an example
;
Todo
- Custom type handling
- Replace
Option
s withResult
s such that it's possible to identify whether the argument name didn't exist, or the type was wrong - Add
snafu
- Add convenience functions (e.g.
get_string()
,get_int()
) - Properly document gotchas
- Add variant without
used()
functionality. - Add more examples