1use crate::*; 2 3/// Creates a new boxed read-write lock. 4/// 5/// # Arguments 6/// 7/// - `T` - The data type to be wrapped. 8/// 9/// # Returns 10/// 11/// - `BoxRwLock<T>` - A new boxed read-write lock. 12pub fn box_rwlock<T>(data: T) -> BoxRwLock<T> { 13 Box::new(RwLock::new(data)) 14}