A macro to replace function parameters types and convert them to the original type using TryFrom.
The original motivation for this crate was to use it with wasm-bindgen, so a function can .
Example
extern crate convert_params;
example to:
fn example(i: u32, _value1: Orig, _value2: Orig) -> Result<(), Error> {
let _value2 = {
let _value2: Orig = _value2.into();
<Foo as std::convert::TryFrom<_>>::try_from(_value2)?
};
let _value1 = {
let _value1: Orig = _value1.into();
<Foo as std::convert::TryFrom<_>>::try_from(_value1)?
};
Ok(())
}