Struct atomic_refcell::AtomicRefMut
source · pub struct AtomicRefMut<'b, T: ?Sized + 'b> { /* private fields */ }
Expand description
A wrapper type for a mutably borrowed value from an AtomicRefCell<T>
.
Implementations§
source§impl<'b, T: ?Sized> AtomicRefMut<'b, T>
impl<'b, T: ?Sized> AtomicRefMut<'b, T>
sourcepub fn map<U: ?Sized, F>(orig: AtomicRefMut<'b, T>, f: F) -> AtomicRefMut<'b, U>where
F: FnOnce(&mut T) -> &mut U,
pub fn map<U: ?Sized, F>(orig: AtomicRefMut<'b, T>, f: F) -> AtomicRefMut<'b, U>where
F: FnOnce(&mut T) -> &mut U,
Make a new AtomicRefMut
for a component of the borrowed data, e.g. an enum
variant.