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