fn DisjointImmutGuard::get_unchecked: add unsafe fn to bypass DisjointMut#1479
fn DisjointImmutGuard::get_unchecked: add unsafe fn to bypass DisjointMut#1479
fn DisjointImmutGuard::get_unchecked: add unsafe fn to bypass DisjointMut#1479Conversation
|
I'm not sure I understand what the point of this change is. |
The existing deref impl returns a slice that can't outlive the guard. This method does. |
|
Ah, I see now, the returned reference isn't tied to the guard, it's tied to the borrow the guard represents, i.e. the original |
cceab5a to
0266fff
Compare
0266fff to
9fc3603
Compare
fn DisjointImmutGuard::unchecked_disjoint_mut: add unsafe fn to bypass DisjointMutfn DisjointImmutGuard::get_unchecked: add unsafe fn to bypass DisjointMut
For use in #1439 (comment).