Struct atomic_refcell::AtomicRefMut
source · pub struct AtomicRefMut<'b, T: ?Sized + 'b> {
pub(crate) value: NonNull<T>,
pub(crate) borrow: AtomicBorrowRefMut<'b>,
pub(crate) marker: PhantomData<&'b mut T>,
}
Expand description
A wrapper type for a mutably borrowed value from an AtomicRefCell<T>
.
Fields§
§value: NonNull<T>
§borrow: AtomicBorrowRefMut<'b>
§marker: PhantomData<&'b mut 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>
pub fn map<U: ?Sized, F>(orig: AtomicRefMut<'b, T>, f: F) -> AtomicRefMut<'b, U>
Make a new AtomicRefMut
for a component of the borrowed data, e.g. an enum
variant.
sourcepub fn filter_map<U: ?Sized, F>(
orig: AtomicRefMut<'b, T>,
f: F,
) -> Option<AtomicRefMut<'b, U>>
pub fn filter_map<U: ?Sized, F>( orig: AtomicRefMut<'b, T>, f: F, ) -> Option<AtomicRefMut<'b, U>>
Make a new AtomicRefMut
for an optional component of the borrowed data.
Trait Implementations§
source§impl<'b, T: ?Sized> Deref for AtomicRefMut<'b, T>
impl<'b, T: ?Sized> Deref for AtomicRefMut<'b, T>
source§impl<'b, T: ?Sized> DerefMut for AtomicRefMut<'b, T>
impl<'b, T: ?Sized> DerefMut for AtomicRefMut<'b, T>
impl<'b, T: ?Sized> Send for AtomicRefMut<'b, T>
impl<'b, T: ?Sized> Sync for AtomicRefMut<'b, T>
Auto Trait Implementations§
impl<'b, T> Freeze for AtomicRefMut<'b, T>where
T: ?Sized,
impl<'b, T> RefUnwindSafe for AtomicRefMut<'b, T>where
T: RefUnwindSafe + ?Sized,
impl<'b, T> Unpin for AtomicRefMut<'b, T>where
T: ?Sized,
impl<'b, T> !UnwindSafe for AtomicRefMut<'b, T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more