pub struct DebugReferences<T>(/* private fields */);Expand description
Provides a Debug implementation that contains information helpful for
debugging dangling references.
Implementations§
Source§impl<T: Send + Sync + 'static> DebugReferences<T>
impl<T: Send + Sync + 'static> DebugReferences<T>
Sourcepub fn into_dyn(self) -> DynDebugReferences
pub fn into_dyn(self) -> DynDebugReferences
Transforms this DebugReferences into a DynDebugReferences.
Trait Implementations§
Source§impl<T: Clone> Clone for DebugReferences<T>
impl<T: Clone> Clone for DebugReferences<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for DebugReferences<T>
impl<T> !UnwindSafe for DebugReferences<T>
impl<T> Freeze for DebugReferences<T>
impl<T> Send for DebugReferences<T>
impl<T> Sync for DebugReferences<T>
impl<T> Unpin for DebugReferences<T>
impl<T> UnsafeUnpin for DebugReferences<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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<B, A> LockBefore<B> for Awhere
B: LockAfter<A>,
Source§impl<L, T> UnlockedAccess<L> for Twhere
L: UnlockedAccessMarkerFor<T>,
impl<L, T> UnlockedAccess<L> for Twhere
L: UnlockedAccessMarkerFor<T>,
Source§type Data = <L as UnlockedAccessMarkerFor<T>>::Data
type Data = <L as UnlockedAccessMarkerFor<T>>::Data
The type of state being accessed.
Source§type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data
where
T: 'l
type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data where T: 'l
A guard providing read access to the data.
Source§fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>
fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>
How to access the state.