Skip to main content

Query

Struct Query 

Source
pub struct Query<'q, 's, S: RangeSource> { /* private fields */ }
Expand description

Metadata-only generation guard shared by material lookup and archive input coverage. It cannot replace the original document’s source or execution.

Trait Implementations§

Source§

impl<'q, S: RangeSource> Query for Query<'q, '_, S>

Source§

type Id = Node

Original node identity.
Source§

type Document = <S as RangeSource>::Document

Stable document identity.
Source§

type Generation = <S as RangeSource>::Generation

Exact document generation.
Source§

type Work = Execution<'q>

Current execution funding this query.
Source§

fn snapshot(&self) -> Snapshot<Self::Document, Self::Generation>

The expected source snapshot of every fact checked in this query.
Source§

fn execution(&self) -> &Self::Work

The current execution; storage and work for results are admitted here.
Source§

fn admit(&self, node: Node, units: u64) -> Result<(), ScopeError<Node>>

Requires the live source at the expected snapshot, admits units of work, and requires the snapshot again.
Source§

fn equal(&self, left: Self::Id, right: Self::Id) -> Result<bool, MemoryError>

Compares two identities after admitting their complete HashWork.

Auto Trait Implementations§

§

impl<'q, 's, S> !RefUnwindSafe for Query<'q, 's, S>

§

impl<'q, 's, S> !Send for Query<'q, 's, S>

§

impl<'q, 's, S> !Sync for Query<'q, 's, S>

§

impl<'q, 's, S> !UnwindSafe for Query<'q, 's, S>

§

impl<'q, 's, S> Freeze for Query<'q, 's, S>
where &'q Document<'s, S>: Freeze,

§

impl<'q, 's, S> Unpin for Query<'q, 's, S>
where &'q Document<'s, S>: Unpin,

§

impl<'q, 's, S> UnsafeUnpin for Query<'q, 's, S>
where &'q Document<'s, S>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.