rc_rwlock

Function rc_rwlock 

Source
pub fn rc_rwlock<T>(data: T) -> RcRwLock<T>
Expand description

Creates a new RcRwLock instance.

This function wraps a given data of type T in an Rc and RwLock to provide shared mutable access.

§Arguments

  • data - The data of type T to be wrapped.

§Returns

A new RcRwLock<T> instance.