pub struct LifetimeTracker(/* private fields */);Implementations§
Source§impl LifetimeTracker
impl LifetimeTracker
pub fn new() -> Self
pub fn new_with_value(value: usize) -> Self
pub fn start_tracking() -> MutexGuard<'static, LifetimeTrackingState>
Trait Implementations§
Source§impl Clone for LifetimeTracker
impl Clone for LifetimeTracker
Source§fn clone(&self) -> LifetimeTracker
fn clone(&self) -> LifetimeTracker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LifetimeTracker
impl Debug for LifetimeTracker
Source§impl Default for LifetimeTracker
impl Default for LifetimeTracker
Source§fn default() -> LifetimeTracker
fn default() -> LifetimeTracker
Returns the “default value” for a type. Read more
Source§impl Deref for LifetimeTracker
impl Deref for LifetimeTracker
Source§impl DerefMut for LifetimeTracker
impl DerefMut for LifetimeTracker
impl Eq for LifetimeTracker
Source§impl Ord for LifetimeTracker
impl Ord for LifetimeTracker
Source§fn cmp(&self, other: &LifetimeTracker) -> Ordering
fn cmp(&self, other: &LifetimeTracker) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LifetimeTracker
impl PartialEq for LifetimeTracker
Source§fn eq(&self, other: &LifetimeTracker) -> bool
fn eq(&self, other: &LifetimeTracker) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LifetimeTracker
impl PartialOrd for LifetimeTracker
impl StructuralPartialEq for LifetimeTracker
Source§impl ZeroCopySend for LifetimeTracker
impl ZeroCopySend for LifetimeTracker
Auto Trait Implementations§
impl Freeze for LifetimeTracker
impl RefUnwindSafe for LifetimeTracker
impl Send for LifetimeTracker
impl Sync for LifetimeTracker
impl Unpin for LifetimeTracker
impl UnsafeUnpin for LifetimeTracker
impl UnwindSafe for LifetimeTracker
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