Struct salsa::DatabaseKeyIndex[][src]

pub struct DatabaseKeyIndex { /* fields omitted */ }

An integer that uniquely identifies a particular query instance within the database. Used to track dependencies between queries. Fully ordered and equatable but those orderings are arbitrary, and meant to be used only for inserting into maps and the like.

Implementations

impl DatabaseKeyIndex[src]

pub fn group_index(self) -> u16[src]

Returns the index of the query group containing this key.

pub fn query_index(self) -> u16[src]

Returns the index of the query within its query group.

pub fn key_index(self) -> u32[src]

Returns the index of this particular query key within the query.

pub fn debug<D: ?Sized>(self, db: &D) -> impl Debug + '_ where
    D: DatabaseOps, 
[src]

Returns a type that gives a user-readable debug output. Use like println!("{:?}", index.debug(db)).

Trait Implementations

impl Clone for DatabaseKeyIndex[src]

impl Copy for DatabaseKeyIndex[src]

impl Debug for DatabaseKeyIndex[src]

impl Eq for DatabaseKeyIndex[src]

impl Hash for DatabaseKeyIndex[src]

impl Ord for DatabaseKeyIndex[src]

impl PartialEq<DatabaseKeyIndex> for DatabaseKeyIndex[src]

impl PartialOrd<DatabaseKeyIndex> for DatabaseKeyIndex[src]

impl StructuralEq for DatabaseKeyIndex[src]

impl StructuralPartialEq for DatabaseKeyIndex[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized
[src]

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.