Struct salsa::DatabaseKeyIndex
source · pub struct DatabaseKeyIndex { /* private fields */ }
Expand description
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§
source§impl DatabaseKeyIndex
impl DatabaseKeyIndex
sourcepub fn group_index(self) -> u16
pub fn group_index(self) -> u16
Returns the index of the query group containing this key.
sourcepub fn query_index(self) -> u16
pub fn query_index(self) -> u16
Returns the index of the query within its query group.
Trait Implementations§
source§impl Clone for DatabaseKeyIndex
impl Clone for DatabaseKeyIndex
source§fn clone(&self) -> DatabaseKeyIndex
fn clone(&self) -> DatabaseKeyIndex
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DatabaseKeyIndex
impl Debug for DatabaseKeyIndex
source§impl Hash for DatabaseKeyIndex
impl Hash for DatabaseKeyIndex
source§impl Ord for DatabaseKeyIndex
impl Ord for DatabaseKeyIndex
source§fn cmp(&self, other: &DatabaseKeyIndex) -> Ordering
fn cmp(&self, other: &DatabaseKeyIndex) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DatabaseKeyIndex
impl PartialEq for DatabaseKeyIndex
source§fn eq(&self, other: &DatabaseKeyIndex) -> bool
fn eq(&self, other: &DatabaseKeyIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DatabaseKeyIndex
impl PartialOrd for DatabaseKeyIndex
source§fn partial_cmp(&self, other: &DatabaseKeyIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &DatabaseKeyIndex) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for DatabaseKeyIndex
impl Eq for DatabaseKeyIndex
impl StructuralEq for DatabaseKeyIndex
impl StructuralPartialEq for DatabaseKeyIndex
Auto Trait Implementations§
impl RefUnwindSafe for DatabaseKeyIndex
impl Send for DatabaseKeyIndex
impl Sync for DatabaseKeyIndex
impl Unpin for DatabaseKeyIndex
impl UnwindSafe for DatabaseKeyIndex
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.