pub struct Snapshot<D, G> {
pub document: D,
pub generation: G,
}Expand description
Original document identity and the exact immutable view generation. A generation change invalidates earlier source-derived evidence.
Fields§
§document: DStable identity supplied by the source owner, not a fingerprint.
generation: GGeneration under which source ranges and evidence were obtained.
Trait Implementations§
impl<D, G> Copy for Snapshot<D, G>
impl<D, G> Eq for Snapshot<D, G>
impl<D, G> StructuralPartialEq for Snapshot<D, G>
Auto Trait Implementations§
impl<D, G> Freeze for Snapshot<D, G>
impl<D, G> RefUnwindSafe for Snapshot<D, G>where
D: RefUnwindSafe,
G: RefUnwindSafe,
impl<D, G> Send for Snapshot<D, G>
impl<D, G> Sync for Snapshot<D, G>
impl<D, G> Unpin for Snapshot<D, G>
impl<D, G> UnsafeUnpin for Snapshot<D, G>where
D: UnsafeUnpin,
G: UnsafeUnpin,
impl<D, G> UnwindSafe for Snapshot<D, G>where
D: UnwindSafe,
G: 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