[Discussion] Hybrid borrow

This sounds a lot like "downgradable" or "downgrading" borrows that were discussed before:

The main problem is that it must stay impossible to get a shared borrow from an unique/mutable borrow when interior mutability is involved. So your BorrowHybrid::immut() may not be called when Borrowed has interior mutability.

11 Likes