pub struct Snapshot<V> { /* private fields */ }Expand description
An owned snapshot of a caller value V, returned by attribution
(WatchView::covering / resolve).
The watch-set snapshot a query loads is a temporary immutable tree, so the owning
value cannot be handed back by reference; it is cloned out into this owned wrapper.
A Snapshot Derefs to the value, so it reads like a &V.
Implementations§
Trait Implementations§
impl<V: Eq> Eq for Snapshot<V>
impl<V: PartialEq> StructuralPartialEq for Snapshot<V>
Auto Trait Implementations§
impl<V> Freeze for Snapshot<V>where
V: Freeze,
impl<V> RefUnwindSafe for Snapshot<V>where
V: RefUnwindSafe,
impl<V> Send for Snapshot<V>where
V: Send,
impl<V> Sync for Snapshot<V>where
V: Sync,
impl<V> Unpin for Snapshot<V>where
V: Unpin,
impl<V> UnsafeUnpin for Snapshot<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for Snapshot<V>where
V: UnwindSafe,
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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§impl<T, A> DynAccess<T> for A
impl<T, A> DynAccess<T> for A
Source§fn load(&self) -> DynGuard<T>
fn load(&self) -> DynGuard<T>
The equivalent of
Access::load.