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