Macro cookie_factory::gen_call
[−]
[src]
macro_rules! gen_call { (($i:expr, $idx:expr), $fun:expr) => { ... }; (($i:expr, $idx:expr), $fun:expr, $($args:expr),* ) => { ... }; }
Used to wrap common expressions and function as macros
// will make a generator setting an u8 fn gen0(x:(&mut [u8],usize),v:u8) -> Result<(&mut [u8],usize),GenError> { gen_call!((x.0,x.1), set_be_u8, v) }