[−][src]Trait qwutils::scoped::Interior
like ScopedMut, but explict with interior mutability
Associated Types
type T
Required methods
fn interior_access<R>(&self, f: impl FnOnce(&Self::T) -> R) -> R
fn interior_access_mut<R>(&self, f: impl FnOnce(&mut Self::T) -> R) -> R
Implementations on Foreign Types
impl<S, T> Interior for RefCell<S> where
S: ScopedMut<T = T>,
[src]
S: ScopedMut<T = T>,
type T = T
fn interior_access<R>(&self, f: impl FnOnce(&T) -> R) -> R
[src]
fn interior_access_mut<R>(&self, f: impl FnOnce(&mut T) -> R) -> R
[src]
impl<S, T> Interior for RwLock<S> where
S: ScopedMut<T = T>,
[src]
S: ScopedMut<T = T>,
type T = T
fn interior_access<R>(&self, f: impl FnOnce(&T) -> R) -> R
[src]
fn interior_access_mut<R>(&self, f: impl FnOnce(&mut T) -> R) -> R
[src]
impl<'a, T, C> Interior for &'a C where
C: Interior<T = T>,
[src]
C: Interior<T = T>,
type T = T
fn interior_access<R>(&self, f: impl FnOnce(&T) -> R) -> R
[src]
fn interior_access_mut<R>(&self, f: impl FnOnce(&mut T) -> R) -> R
[src]
impl<'a, T, C> Interior for &'a mut C where
C: Interior<T = T>,
[src]
C: Interior<T = T>,
type T = T
fn interior_access<R>(&self, f: impl FnOnce(&T) -> R) -> R
[src]
fn interior_access_mut<R>(&self, f: impl FnOnce(&mut T) -> R) -> R
[src]
impl<'a, T, C> Interior for Box<C> where
C: Interior<T = T>,
[src]
C: Interior<T = T>,
type T = T
fn interior_access<R>(&self, f: impl FnOnce(&T) -> R) -> R
[src]
fn interior_access_mut<R>(&self, f: impl FnOnce(&mut T) -> R) -> R
[src]
impl<T, C> Interior for Rc<C> where
C: Interior<T = T>,
[src]
C: Interior<T = T>,
type T = T
fn interior_access<R>(&self, f: impl FnOnce(&T) -> R) -> R
[src]
fn interior_access_mut<R>(&self, f: impl FnOnce(&mut T) -> R) -> R
[src]
impl<T, C> Interior for Arc<C> where
C: Interior<T = T>,
[src]
C: Interior<T = T>,