pub trait GuardedMut<T>where
T: ?Sized,{
type GuardMut<'a>: DerefMut<Target = T>
where Self: 'a;
// Required method
fn get_mut<'a>(&'a self) -> Self::GuardMut<'a>;
}Required Associated Types§
Required Methods§
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.
Implementations on Foreign Types§
Source§impl<T> GuardedMut<T> for RefCell<T>
Available on crate feature std only.
impl<T> GuardedMut<T> for RefCell<T>
Available on crate feature
std only.Source§impl<T> GuardedMut<T> for Mutex<T>
Available on crate feature std only.
impl<T> GuardedMut<T> for Mutex<T>
Available on crate feature
std only.Source§impl<T> GuardedMut<T> for RwLock<T>
Available on crate feature std only.
impl<T> GuardedMut<T> for RwLock<T>
Available on crate feature
std only.