pub trait MutableHelper<T> {
// Required methods
fn lock_mut<R>(&self, callback: impl FnOnce(MutGuard<'_, T>) -> R) -> R;
fn lock_ref<R>(&self, callback: impl FnOnce(RefGuard<'_, T>) -> R) -> R;
}Required Methods§
fn lock_mut<R>(&self, callback: impl FnOnce(MutGuard<'_, T>) -> R) -> R
fn lock_ref<R>(&self, callback: impl FnOnce(RefGuard<'_, T>) -> R) -> R
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.