Proffer
Code generation for Rust
Namely useful for generating source code from other data such as JSON
Example
See the documentation for more examples
use *;
let ipl = new
.add_generic
.add_function.to_owned;
let expected = r#"
impl<T> That<T>
where
T: ToString,
{
pub fn foo<S>(bar1: T, bar2: S) -> T
where
S: ,
{
bar
}
}
"#;
let src_code = ipl.generate;
println!;
assert_eq!