[−][src]Struct salsa::QueryTable
Return value from the query
method on Database
.
Gives access to various less common operations on queries.
Implementations
impl<'me, DB, Q> QueryTable<'me, DB, Q> where
DB: GetQueryTable<Q>,
Q: Query<DB>,
[src]
DB: GetQueryTable<Q>,
Q: Query<DB>,
pub fn new(db: &'me DB, storage: &'me Q::Storage) -> Self
[src]
Constructs a new QueryTable
.
pub fn get(&self, key: Q::Key) -> Q::Value
[src]
Execute the query on a given input. Usually it's easier to invoke the trait method directly. Note that for variadic queries (those with no inputs, or those with more than one input) the key will be a tuple.
pub fn sweep(&self, strategy: SweepStrategy) where
Q::Storage: QueryStorageMassOps<DB>,
[src]
Q::Storage: QueryStorageMassOps<DB>,
Remove all values for this query that have not been used in the most recent revision.
Trait Implementations
impl<'_, DB, Q> DebugQueryTable for QueryTable<'_, DB, Q> where
DB: GetQueryTable<Q>,
Q: Query<DB>,
[src]
DB: GetQueryTable<Q>,
Q: Query<DB>,
type Key = Q::Key
Key of this query.
type Value = Q::Value
Value of this query.
fn durability(&self, key: Q::Key) -> Durability
[src]
fn entries<C>(&self) -> C where
C: FromIterator<TableEntry<Self::Key, Self::Value>>,
[src]
C: FromIterator<TableEntry<Self::Key, Self::Value>>,
Auto Trait Implementations
impl<'me, DB, Q> RefUnwindSafe for QueryTable<'me, DB, Q> where
DB: RefUnwindSafe,
<Q as Query<DB>>::Storage: RefUnwindSafe,
DB: RefUnwindSafe,
<Q as Query<DB>>::Storage: RefUnwindSafe,
impl<'me, DB, Q> Send for QueryTable<'me, DB, Q> where
DB: Sync,
<Q as Query<DB>>::Storage: Sync,
DB: Sync,
<Q as Query<DB>>::Storage: Sync,
impl<'me, DB, Q> Sync for QueryTable<'me, DB, Q> where
DB: Sync,
<Q as Query<DB>>::Storage: Sync,
DB: Sync,
<Q as Query<DB>>::Storage: Sync,
impl<'me, DB, Q> Unpin for QueryTable<'me, DB, Q>
impl<'me, DB, Q> UnwindSafe for QueryTable<'me, DB, Q> where
DB: RefUnwindSafe,
<Q as Query<DB>>::Storage: RefUnwindSafe,
DB: RefUnwindSafe,
<Q as Query<DB>>::Storage: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,