pub struct ResolvedIndexVariant { /* private fields */ }Expand description
A fully resolved index variant reference.
Index variants are owned by an index declaration rather than directly by a DAG/module. This type therefore resolves the index itself to a canonical owner, then stores the variant as a leaf in that index’s variant set.
Implementations§
Source§impl ResolvedIndexVariant
impl ResolvedIndexVariant
Sourcepub const fn new(index: ResolvedName<Index>, variant: IndexVariantName) -> Self
pub const fn new(index: ResolvedName<Index>, variant: IndexVariantName) -> Self
Create a resolved index-variant reference from its resolved index and variant leaf.
Sourcepub const fn index(&self) -> &ResolvedName<Index>
pub const fn index(&self) -> &ResolvedName<Index>
The resolved index that owns this variant.
Sourcepub const fn variant(&self) -> &IndexVariantName
pub const fn variant(&self) -> &IndexVariantName
The variant leaf inside Self::index.
Sourcepub fn into_parts(self) -> (ResolvedName<Index>, IndexVariantName)
pub fn into_parts(self) -> (ResolvedName<Index>, IndexVariantName)
Consume this value and return its typed parts.
Trait Implementations§
Source§impl Clone for ResolvedIndexVariant
impl Clone for ResolvedIndexVariant
Source§fn clone(&self) -> ResolvedIndexVariant
fn clone(&self) -> ResolvedIndexVariant
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 Debug for ResolvedIndexVariant
impl Debug for ResolvedIndexVariant
Source§impl Display for ResolvedIndexVariant
impl Display for ResolvedIndexVariant
impl Eq for ResolvedIndexVariant
Source§impl Hash for ResolvedIndexVariant
impl Hash for ResolvedIndexVariant
Source§impl Ord for ResolvedIndexVariant
impl Ord for ResolvedIndexVariant
Source§fn cmp(&self, other: &ResolvedIndexVariant) -> Ordering
fn cmp(&self, other: &ResolvedIndexVariant) -> Ordering
1.21.0 (const: unstable) · 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 ResolvedIndexVariant
impl PartialEq for ResolvedIndexVariant
Source§fn eq(&self, other: &ResolvedIndexVariant) -> bool
fn eq(&self, other: &ResolvedIndexVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ResolvedIndexVariant
impl PartialOrd for ResolvedIndexVariant
impl StructuralPartialEq for ResolvedIndexVariant
Auto Trait Implementations§
impl Freeze for ResolvedIndexVariant
impl RefUnwindSafe for ResolvedIndexVariant
impl Send for ResolvedIndexVariant
impl Sync for ResolvedIndexVariant
impl Unpin for ResolvedIndexVariant
impl UnsafeUnpin for ResolvedIndexVariant
impl UnwindSafe for ResolvedIndexVariant
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.