pub(crate) struct RegionVidKey<'db> {
pub(crate) vid: RegionVid,
pub(crate) phantom: PhantomData<RegionVariableValue<'db>>,
}Fields§
§vid: RegionVid§phantom: PhantomData<RegionVariableValue<'db>>Trait Implementations§
Source§impl<'db> Clone for RegionVidKey<'db>
impl<'db> Clone for RegionVidKey<'db>
Source§fn clone(&self) -> RegionVidKey<'db>
fn clone(&self) -> RegionVidKey<'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 RegionVidKey<'db>
impl<'db> Debug for RegionVidKey<'db>
Source§impl<'db> From<RegionVid> for RegionVidKey<'db>
impl<'db> From<RegionVid> for RegionVidKey<'db>
Source§impl<'db> PartialEq for RegionVidKey<'db>
impl<'db> PartialEq for RegionVidKey<'db>
Source§fn eq(&self, other: &RegionVidKey<'db>) -> bool
fn eq(&self, other: &RegionVidKey<'db>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'db> UnifyKey for RegionVidKey<'db>
impl<'db> UnifyKey for RegionVidKey<'db>
type Value = RegionVariableValue<'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 RegionVidKey<'db>
impl<'db> StructuralPartialEq for RegionVidKey<'db>
Auto Trait Implementations§
impl<'db> Freeze for RegionVidKey<'db>
impl<'db> RefUnwindSafe for RegionVidKey<'db>
impl<'db> Send for RegionVidKey<'db>
impl<'db> Sync for RegionVidKey<'db>
impl<'db> Unpin for RegionVidKey<'db>
impl<'db> UnsafeUnpin for RegionVidKey<'db>
impl<'db> UnwindSafe for RegionVidKey<'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