Hi all,
I'm trying to create a derive that will call an associated function for a type that satisfies a trait that I have written. I.e. I'm doing something like:
quote!{
let x = #ty::new();
}
This works as long as the type is not generic, but when the type is generic it expands into something like Option<bool>::new()
, where what I want is Option::<bool>::new()
. I think what I need is something like a path or a turbofish, but I can't see how to generate this from a Type
, which is all I have.