Module containers

Module containers 

Source

Functions§

for_binaryheap_peek
Create a keypath for peeking at the top of BinaryHeap
for_binaryheap_peek_mut
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.
for_btreemap_key
Create a keypath for key-based access in BTreeMap<K, V>
for_btreemap_key_mut
Create a writable keypath for key-based access in BTreeMap<K, V>
for_btreeset_get
Create a keypath for checking membership in BTreeSet
for_btreeset_get_mut
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
for_hashmap_key
Create a keypath for key-based access in HashMap<K, V>
for_hashmap_key_mut
Create a writable keypath for key-based access in HashMap<K, V>
for_hashset_get
Create a keypath for getting a value from HashSet (returns Option<&T>)
for_hashset_get_mut
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
for_linkedlist_index
Create a keypath for indexed access in LinkedList
for_linkedlist_index_mut
Create a writable keypath for indexed access in LinkedList
for_vec_index
Create a keypath for indexed access in Vec
for_vec_index_mut
Create a writable keypath for indexed access in Vec
for_vecdeque_index
Create a keypath for indexed access in VecDeque
for_vecdeque_index_mut
Create a writable keypath for indexed access in VecDeque
lock_arc_mutex
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
lock_mutex
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
read_arc_rwlock
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
read_rwlock
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
upgrade_rc_weak
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
upgrade_weak
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
write_arc_rwlock
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
write_rwlock
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