Create a writable keypath for peeking at the top of BinaryHeap
Note: BinaryHeap.peek_mut() returns PeekMut which is a guard type.
Due to Rust’s borrowing rules, we cannot return &mut T directly from PeekMut.
This function returns None as BinaryHeap doesn’t support direct mutable access
through keypaths. Use heap.peek_mut() directly for mutable access.
Create a writable keypath for getting a mutable value from BTreeSet
Note: BTreeSet doesn’t support mutable access to elements, but we provide it for consistency
Create a writable keypath for getting a mutable value from HashSet
Note: HashSet doesn’t support mutable access to elements, but we provide it for consistency
Helper function to lock an Arc<Mutex> and access its value
Returns None if the mutex is poisoned
Note: This returns a guard, not a reference, so it cannot be used in keypaths directly
Helper function to lock a Mutex and access its value
Returns None if the mutex is poisoned
Note: This returns a guard, not a reference, so it cannot be used in keypaths directly
Helper function to lock a parking_lot::Mutex and access its value
Note: This returns a guard, not a reference, so it cannot be used in keypaths directly
Helper function to read-lock an Arc<RwLock> and access its value
Returns None if the lock is poisoned
Note: This returns a guard, not a reference, so it cannot be used in keypaths directly
Helper function to read-lock a parking_lot::RwLock and access its value
Note: This returns a guard, not a reference, so it cannot be used in keypaths directly
Helper function to read-lock an RwLock and access its value
Returns None if the lock is poisoned
Note: This returns a guard, not a reference, so it cannot be used in keypaths directly
Helper function to upgrade an Rc::Weak to Rc
Returns None if the Rc has been dropped
Note: This returns an owned Rc, not a reference, so it cannot be used in keypaths directly
Helper function to upgrade a Weak to Arc
Returns None if the Arc has been dropped
Note: This returns an owned Arc, not a reference, so it cannot be used in keypaths directly
Helper function to write-lock an Arc<RwLock> and access its value
Returns None if the lock is poisoned
Note: This returns a guard, not a reference, so it cannot be used in keypaths directly
Helper function to write-lock a parking_lot::RwLock and access its value
Note: This returns a guard, not a reference, so it cannot be used in keypaths directly
Helper function to write-lock an RwLock and access its value
Returns None if the lock is poisoned
Note: This returns a guard, not a reference, so it cannot be used in keypaths directly