Trait interior_mut::InteriorMut
[−]
[src]
pub trait InteriorMut<'a, T> { type RefMut: DerefMut<Target = T> + 'a; type Error; fn borrow_int_mut(&'a self) -> Result<Self::RefMut, Self::Error>; }
A trait for obtaining a mutable reference on types that allow interior mutability.
Associated Types
Required Methods
fn borrow_int_mut(&'a self) -> Result<Self::RefMut, Self::Error>
Mutably borrows the internal value from an immutable reference.