pub struct Instance<T>where
T: Tabulate,{ /* private fields */ }
Expand description
A zero-sized guard that tracks the lifetime of an instance of T
.
Constructing an Instance<T>
increments the population count of T
.
Dropping an Instance<T>
decrements the population count of T
.
Implementations§
Trait Implementations§
Source§impl<T> Ord for Instance<T>where
T: Tabulate,
impl<T> Ord for Instance<T>where
T: Tabulate,
Source§impl<T> PartialOrd for Instance<T>where
T: Tabulate,
impl<T> PartialOrd for Instance<T>where
T: Tabulate,
impl<T> Eq for Instance<T>where
T: Tabulate,
Auto Trait Implementations§
impl<T> Freeze for Instance<T>
impl<T> RefUnwindSafe for Instance<T>where
T: RefUnwindSafe,
impl<T> Send for Instance<T>where
T: Send,
impl<T> Sync for Instance<T>where
T: Sync,
impl<T> Unpin for Instance<T>where
T: Unpin,
impl<T> UnwindSafe for Instance<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