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]
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]
D: DatabaseOps,
Returns a type that gives a user-readable debug output.
Use like println!("{:?}", index.debug(db))
.
Trait Implementations
impl Clone for DatabaseKeyIndex
[src]
impl Clone for DatabaseKeyIndex
[src]fn clone(&self) -> DatabaseKeyIndex
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for DatabaseKeyIndex
[src]
impl Copy for DatabaseKeyIndex
[src]impl Eq for DatabaseKeyIndex
[src]
impl Eq for DatabaseKeyIndex
[src]impl Hash for DatabaseKeyIndex
[src]
impl Hash for DatabaseKeyIndex
[src]impl Ord for DatabaseKeyIndex
[src]
impl Ord for DatabaseKeyIndex
[src]impl PartialEq<DatabaseKeyIndex> for DatabaseKeyIndex
[src]
impl PartialEq<DatabaseKeyIndex> for DatabaseKeyIndex
[src]fn eq(&self, other: &DatabaseKeyIndex) -> bool
[src]
fn ne(&self, other: &DatabaseKeyIndex) -> bool
[src]
impl PartialOrd<DatabaseKeyIndex> for DatabaseKeyIndex
[src]
impl PartialOrd<DatabaseKeyIndex> for DatabaseKeyIndex
[src]fn partial_cmp(&self, other: &DatabaseKeyIndex) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl StructuralEq for DatabaseKeyIndex
[src]
impl StructuralEq for DatabaseKeyIndex
[src]impl StructuralPartialEq for DatabaseKeyIndex
[src]
impl StructuralPartialEq for DatabaseKeyIndex
[src]Auto Trait Implementations
impl RefUnwindSafe for DatabaseKeyIndex
impl RefUnwindSafe for DatabaseKeyIndex
impl Send for DatabaseKeyIndex
impl Send for DatabaseKeyIndex
impl Sync for DatabaseKeyIndex
impl Sync for DatabaseKeyIndex
impl Unpin for DatabaseKeyIndex
impl Unpin for DatabaseKeyIndex
impl UnwindSafe for DatabaseKeyIndex
impl UnwindSafe for DatabaseKeyIndex