delegate-attr 0.3.0

Attribute proc-macro to delegate method to a field
Documentation
use delegate_attr::delegate;

struct Inner;

impl Inner {
    fn answer(&self) -> u32 {
        42
    }
}

struct Wrapper(Inner);

#[delegate(self.0)]
impl Wrapper {
    #[into]
    #[into]
    fn answer(&self) -> u64 {}
}

fn main() {}