1 2 3 4 5 6 7
#[dynamize::dynamize] #[convert = |x: Foo| -> Bar {x.baz()}] trait Trait { fn test(&self); } fn main() {}