3 ms·
Did delegation ever make it into Rust? That would let you do a more comprehensible kind of partial borrowing: if you have impl TR for S { delegate * to se
by lmm 8y ago
Did delegation ever make it into Rust? That would let you do a more comprehensible kind of partial borrowing: if you have
impl TR for S {
delegate * to self.f;
}
then calling TR methods should only require borrowing/owning f rather than the whole of self.
- oconnor663 8y agoThere aren't any new delegation features since 1.0 unfortunately. That said, if it worked this way, delegation would become part of a type's public API, such that changing the delegation details internally could break callers.