pub struct MappedArc<Inner, U>where
Inner: Deref,{ /* private fields */ }
Expand description
A mapped read guard in which the mapping function is a closure. If the mapping function is a
function pointer, use Mapped
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Inner, U> Freeze for MappedArc<Inner, U>where
Inner: Freeze,
impl<Inner, U> !RefUnwindSafe for MappedArc<Inner, U>
impl<Inner, U> !Send for MappedArc<Inner, U>
impl<Inner, U> !Sync for MappedArc<Inner, U>
impl<Inner, U> Unpin for MappedArc<Inner, U>where
Inner: Unpin,
impl<Inner, U> !UnwindSafe for MappedArc<Inner, U>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.