pub struct Scope<'a, S: Source, W: Work> { /* private fields */ }Expand description
The query of a Source that has no access guard of its own.
No clone, allocation or reference-count increment is needed to construct it.
Implementations§
Trait Implementations§
Source§impl<S: Source, W: Work> Query for Scope<'_, S, W>
impl<S: Source, W: Work> Query for Scope<'_, S, W>
Source§type Generation = <S as Source>::Generation
type Generation = <S as Source>::Generation
Exact document generation.
Source§fn snapshot(&self) -> Snapshot<S::Document, S::Generation>
fn snapshot(&self) -> Snapshot<S::Document, S::Generation>
The expected source snapshot of every fact checked in this query.
Source§fn execution(&self) -> &W
fn execution(&self) -> &W
The current execution; storage and work for results are admitted here.
Auto Trait Implementations§
impl<'a, S, W> Freeze for Scope<'a, S, W>
impl<'a, S, W> RefUnwindSafe for Scope<'a, S, W>where
&'a S: RefUnwindSafe,
Snapshot<<S as Source>::Document, <S as Source>::Generation>: RefUnwindSafe,
&'a W: RefUnwindSafe,
impl<'a, S, W> Send for Scope<'a, S, W>
impl<'a, S, W> Sync for Scope<'a, S, W>
impl<'a, S, W> Unpin for Scope<'a, S, W>
impl<'a, S, W> UnsafeUnpin for Scope<'a, S, W>where
&'a S: UnsafeUnpin,
Snapshot<<S as Source>::Document, <S as Source>::Generation>: UnsafeUnpin,
&'a W: UnsafeUnpin,
impl<'a, S, W> UnwindSafe for Scope<'a, S, W>where
&'a S: UnwindSafe,
Snapshot<<S as Source>::Document, <S as Source>::Generation>: UnwindSafe,
&'a W: 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