Is there a way to delegate traits directly from Box<T>, Arc<T>, etc. without a wrapper? For example, something like the following:
#[delegatable_trait(for = "Box<T>")]
trait Foo {
fn hello(&self) -> String;
}
Will generate something like this:
trait Foo {
fn hello(&self) -> String;
}
impl<T: Foo> Foo for Box<T> {
fn hello(&self) -> String {
(**self).hello()
}
}