Struct atomic_refcell::AtomicRefMut [−][src]
pub struct AtomicRefMut<'b, T: ?Sized + 'b> { /* fields omitted */ }
Expand description
A wrapper type for a mutably borrowed value from an AtomicRefCell<T>
.
Implementations
pub 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.
pub fn filter_map<U: ?Sized, F>(
orig: AtomicRefMut<'b, T>,
f: F
) -> Option<AtomicRefMut<'b, U>> where
F: FnOnce(&mut T) -> Option<&mut U>,
pub fn filter_map<U: ?Sized, F>(
orig: AtomicRefMut<'b, T>,
f: F
) -> Option<AtomicRefMut<'b, U>> where
F: FnOnce(&mut T) -> Option<&mut U>,
Make a new AtomicRefMut
for an optional component of the borrowed data.