box_rwlock

Function box_rwlock 

Source
pub fn box_rwlock<T>(data: T) -> BoxRwLock<T>
Expand description

Creates a new boxed read-write lock.

§Arguments

  • T - The data type to be wrapped.

§Returns

  • BoxRwLock<T> - A new boxed read-write lock.