pub(crate) struct ConstVidKey<'db> {
pub(crate) vid: ConstVid,
pub(crate) phantom: PhantomData<Const<'db>>,
}Fields§
§vid: ConstVid§phantom: PhantomData<Const<'db>>Trait Implementations§
Source§impl<'db> Clone for ConstVidKey<'db>
impl<'db> Clone for ConstVidKey<'db>
Source§fn clone(&self) -> ConstVidKey<'db>
fn clone(&self) -> ConstVidKey<'db>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'db> Debug for ConstVidKey<'db>
impl<'db> Debug for ConstVidKey<'db>
Source§impl<'db> From<ConstVid> for ConstVidKey<'db>
impl<'db> From<ConstVid> for ConstVidKey<'db>
Source§impl<'db> PartialEq for ConstVidKey<'db>
impl<'db> PartialEq for ConstVidKey<'db>
Source§fn eq(&self, other: &ConstVidKey<'db>) -> bool
fn eq(&self, other: &ConstVidKey<'db>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'db> UnifyKey for ConstVidKey<'db>
impl<'db> UnifyKey for ConstVidKey<'db>
type Value = ConstVariableValue<'db>
fn index(&self) -> u32
fn from_index(i: u32) -> Self
fn tag() -> &'static str
§fn order_roots(
a: Self,
a_value: &Self::Value,
b: Self,
b_value: &Self::Value,
) -> Option<(Self, Self)>
fn order_roots( a: Self, a_value: &Self::Value, b: Self, b_value: &Self::Value, ) -> Option<(Self, Self)>
You should return first the key that should be used as root,
then the other key (that will then point to the new root). Read more
impl<'db> Copy for ConstVidKey<'db>
impl<'db> StructuralPartialEq for ConstVidKey<'db>
Auto Trait Implementations§
impl<'db> Freeze for ConstVidKey<'db>
impl<'db> RefUnwindSafe for ConstVidKey<'db>
impl<'db> Send for ConstVidKey<'db>
impl<'db> Sync for ConstVidKey<'db>
impl<'db> Unpin for ConstVidKey<'db>
impl<'db> UnsafeUnpin for ConstVidKey<'db>
impl<'db> UnwindSafe for ConstVidKey<'db>
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,
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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