[][src]Trait qwutils::scoped::Interior

pub trait Interior {
    type T;
    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; }

like ScopedMut, but explict with interior mutability

Associated Types

type T

Loading content...

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

Loading content...

Implementations on Foreign Types

impl<S, T> Interior for RefCell<S> where
    S: ScopedMut<T = T>, 
[src]

type T = T

impl<S, T> Interior for RwLock<S> where
    S: ScopedMut<T = T>, 
[src]

type T = T

impl<'a, T, C> Interior for &'a C where
    C: Interior<T = T>, 
[src]

type T = T

impl<'a, T, C> Interior for &'a mut C where
    C: Interior<T = T>, 
[src]

type T = T

impl<'a, T, C> Interior for Box<C> where
    C: Interior<T = T>, 
[src]

type T = T

impl<T, C> Interior for Rc<C> where
    C: Interior<T = T>, 
[src]

type T = T

impl<T, C> Interior for Arc<C> where
    C: Interior<T = T>, 
[src]

type T = T

Loading content...

Implementors

Loading content...