ReadWriteOrPanic

Trait ReadWriteOrPanic 

Source
pub trait ReadWriteOrPanic<T> {
    // Required methods
    fn read_or_panic(&self) -> RwLockReadGuard<'_, T>;
    fn write_or_panic(&self) -> RwLockWriteGuard<'_, T>;
}

Required Methods§

Implementations on Foreign Types§

Source§

impl<T> ReadWriteOrPanic<T> for RwLock<T>

Implementors§