[−][src]Struct salsa::QueryTableMut
Return value from the query_mut
method on Database
.
Gives access to the set
method, notably, that is used to
set the value of an input query.
Methods
impl<'me, DB, Q> QueryTableMut<'me, DB, Q> where
DB: GetQueryTable<Q>,
Q: Query<DB> + 'me,
[src]
DB: GetQueryTable<Q>,
Q: Query<DB> + 'me,
impl<DB, Q, '_> QueryTableMut<'_, DB, Q> where
DB: GetQueryTable<Q>,
Q: Query<DB>,
[src]
DB: GetQueryTable<Q>,
Q: Query<DB>,
pub fn set(&self, key: Q::Key, value: Q::Value) where
Q::Storage: InputQueryStorageOps<DB, Q>,
[src]
Q::Storage: InputQueryStorageOps<DB, Q>,
Assign a value to an "input query". Must be used outside of an active query computation.
If you are using snapshot
, see the notes on blocking
and cancellation on the query_mut
method.
pub fn set_constant(&self, key: Q::Key, value: Q::Value) where
Q::Storage: InputQueryStorageOps<DB, Q>,
[src]
Q::Storage: InputQueryStorageOps<DB, Q>,
Assign a value to an "input query", with the additional promise that this value will never change. Must be used outside of an active query computation.
If you are using snapshot
, see the notes on blocking
and cancellation on the query_mut
method.
Auto Trait Implementations
impl<'me, DB, Q> Send for QueryTableMut<'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 QueryTableMut<'me, DB, Q> where
DB: Sync,
<Q as Query<DB>>::Storage: Sync,
DB: Sync,
<Q as Query<DB>>::Storage: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,