pub struct DoubleDeref<T> { /* private fields */ }Expand description
A wrapper for a smart pointer that implements Deref and DerefMut
by dereferencing the type inside the smart pointer.
This is quite obscure and mostly useful for situations in which we want
a wrapper for Box<dyn Deref<Target = T>> that dereferences to T rather
than dereferencing to dyn Deref<Target = T>.
This is used internally in MappedSignal and ArcMappedSignal.
Trait Implementations§
Source§impl<T> Deref for DoubleDeref<T>
impl<T> Deref for DoubleDeref<T>
Source§impl<T> DerefMut for DoubleDeref<T>
impl<T> DerefMut for DoubleDeref<T>
Source§impl<T> UntrackableGuard for DoubleDeref<T>
impl<T> UntrackableGuard for DoubleDeref<T>
Auto Trait Implementations§
impl<T> Freeze for DoubleDeref<T>where
T: Freeze,
impl<T> RefUnwindSafe for DoubleDeref<T>where
T: RefUnwindSafe,
impl<T> Send for DoubleDeref<T>where
T: Send,
impl<T> Sync for DoubleDeref<T>where
T: Sync,
impl<T> Unpin for DoubleDeref<T>where
T: Unpin,
impl<T> UnwindSafe for DoubleDeref<T>where
T: UnwindSafe,
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> 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.