macro_rules! with_args {
( $args:ty, $ty:ty ) => { ... };
}Expand description
Construct a function-pointer type identical to the given one but using the specified argument tuple type.
ยงExamples
type F = extern "C" fn(i32) -> i32;
type G = with_args!((u8, u16), F);
// `G` is `extern "C" fn(u8, u16) -> i32`