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>
Source§fn clone(&self) -> DebugReferences<T>
fn clone(&self) -> DebugReferences<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for DebugReferences<T>
impl<T> RefUnwindSafe for DebugReferences<T>where
T: RefUnwindSafe,
impl<T> Send for DebugReferences<T>
impl<T> Sync for DebugReferences<T>
impl<T> Unpin for DebugReferences<T>
impl<T> UnwindSafe for DebugReferences<T>where
T: RefUnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.