| ▲ | Cyph0n 11 hours ago | ||||||||||||||||||||||
Do you mean borrows for different fields of a struct? If so, that’s handled today - it’s sometimes called “splitting borrows”: https://doc.rust-lang.org/nomicon/borrow-splitting.html | |||||||||||||||||||||||
| ▲ | loeg 10 hours ago | parent [-] | ||||||||||||||||||||||
Not exactly -- independent subranges of the same range (as would be relevant to something like memcpy/memmove/strcpy). E.g., https://godbolt.org/z/YhGajnhEG It's mentioned later in the same article you shared above. | |||||||||||||||||||||||
| |||||||||||||||||||||||