[][src]Struct salsa::QueryTableMut

pub struct QueryTableMut<'me, DB, Q> where
    DB: GetQueryTable<Q>,
    Q: Query<DB> + 'me, 
{ /* fields omitted */ }

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]

pub fn new(db: &'me DB, storage: &'me Q::Storage) -> Self[src]

Constructs a new QueryTableMut.

impl<DB, Q, '_> QueryTableMut<'_, DB, Q> where
    DB: GetQueryTable<Q>,
    Q: Query<DB>, 
[src]

pub fn set(&self, key: Q::Key, value: Q::Value) where
    Q::Storage: InputQueryStorageOps<DB, Q>, 
[src]

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]

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

impl<'me, DB, Q> Sync for QueryTableMut<'me, DB, Q> where
    DB: Sync,
    <Q as Query<DB>>::Storage: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T