pub struct DatabaseKeyIndex { /* private fields */ }Expand description
An integer that uniquely identifies a particular query instance within the database. Used to track input and output 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
pub const fn ingredient_index(self) -> IngredientIndex
pub const fn key_index(self) -> Id
Trait Implementations§
Source§impl Clone for DatabaseKeyIndex
impl Clone for DatabaseKeyIndex
impl Copy for DatabaseKeyIndex
Source§impl Debug for DatabaseKeyIndex
impl Debug for DatabaseKeyIndex
impl Eq for DatabaseKeyIndex
Source§impl Hash for DatabaseKeyIndex
impl Hash for DatabaseKeyIndex
Source§impl PartialEq for DatabaseKeyIndex
impl PartialEq for DatabaseKeyIndex
impl StructuralPartialEq for DatabaseKeyIndex
Auto Trait Implementations§
impl Forget for DatabaseKeyIndex
impl Freeze for DatabaseKeyIndex
impl Move for DatabaseKeyIndex
impl RefUnwindSafe for DatabaseKeyIndex
impl Send for DatabaseKeyIndex
impl Sync for DatabaseKeyIndex
impl Unpin for DatabaseKeyIndex
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> HashEqLike<Cow<'_, T>> for T
impl<T> HashEqLike<Cow<'_, T>> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more