use delegate_attr::delegate; struct Foo(Vec); #[delegate(self.0)] impl Foo { fn len(x: &Foo) -> usize {} } fn main() {}