pub struct AtomicRefMut<'b, T>where
T: 'b + ?Sized,{ /* private fields */ }
Expand description
A wrapper type for a mutably borrowed value from an AtomicRefCell<T>
.
Implementations§
Source§impl<'b, T> AtomicRefMut<'b, T>where
T: ?Sized,
impl<'b, T> AtomicRefMut<'b, T>where
T: ?Sized,
Sourcepub fn map<U, F>(orig: AtomicRefMut<'b, T>, f: F) -> AtomicRefMut<'b, U>
pub fn map<U, 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, F>(
orig: AtomicRefMut<'b, T>,
f: F,
) -> Option<AtomicRefMut<'b, U>>
pub fn filter_map<U, 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> Debug for AtomicRefMut<'b, T>
impl<'b, T> Debug for AtomicRefMut<'b, T>
Source§impl<'b, T> DerefMut for AtomicRefMut<'b, T>where
T: ?Sized,
impl<'b, T> DerefMut for AtomicRefMut<'b, T>where
T: ?Sized,
Source§impl<'b, T> Deref for AtomicRefMut<'b, T>where
T: ?Sized,
impl<'b, T> Deref for AtomicRefMut<'b, T>where
T: ?Sized,
impl<'b, T> Send for AtomicRefMut<'b, T>
impl<'b, T> 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
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more