Delegation in this context means: expose a {trait, method} of some inner type. You could imagine something like this: struct MyType { inner: Vec<u8> } impl MyType { delegate get = inner.get; } MyType now has a "get" method as if it was a concrete impl.
-
-
Show this thread
-
Delegating AsyncRead to an inner type is ~25 lines of boilerplate per file. Being able to forward this would be great! Also worth noting this is different from Deref/DerefMut. Sometimes you want to forward impls "dynamically" (*cough*, Mutex). But new types are common too!
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.