Function rc_rwlock
Source pub fn rc_rwlock<T>(data: T) -> Rc<RwLock<T>>
Expand description
Creates a new Rc<RwLock<T>> instance.
This function wraps a given data of type T in an Rc and RwLock to provide shared mutable access.
§Arguments
T - The data of type T to be wrapped.
§Returns
Rc<RwLock<T>> - A new Rc<RwLock<T>> instance.