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

The reference type

The error type

Required Methods

Mutably borrows the internal value from an immutable reference.

Implementations on Foreign Types

impl<'a, T: 'a> InteriorMut<'a, T> for RefCell<T>
[src]

[src]

impl<'a, T: 'a> InteriorMut<'a, T> for Mutex<T>
[src]

[src]

impl<'a, T: 'a> InteriorMut<'a, T> for RwLock<T>
[src]

Implementors