Struct move_model::model::QualifiedInstId
source · pub struct QualifiedInstId<Id> {
pub module_id: ModuleId,
pub inst: Vec<Type>,
pub id: Id,
}
Expand description
Some identifier qualified by a module and a type instantiation.
Fields§
§module_id: ModuleId
§inst: Vec<Type>
§id: Id
Implementations§
source§impl<Id: Clone> QualifiedInstId<Id>
impl<Id: Clone> QualifiedInstId<Id>
pub fn instantiate(self, params: &[Type]) -> Self
pub fn instantiate_ref(&self, params: &[Type]) -> Self
pub fn to_qualified_id(&self) -> QualifiedId<Id>
Trait Implementations§
source§impl<Id: Clone> Clone for QualifiedInstId<Id>
impl<Id: Clone> Clone for QualifiedInstId<Id>
source§fn clone(&self) -> QualifiedInstId<Id>
fn clone(&self) -> QualifiedInstId<Id>
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<Id: Debug> Debug for QualifiedInstId<Id>
impl<Id: Debug> Debug for QualifiedInstId<Id>
source§impl<Id: Hash> Hash for QualifiedInstId<Id>
impl<Id: Hash> Hash for QualifiedInstId<Id>
source§impl<Id: Ord> Ord for QualifiedInstId<Id>
impl<Id: Ord> Ord for QualifiedInstId<Id>
source§fn cmp(&self, other: &QualifiedInstId<Id>) -> Ordering
fn cmp(&self, other: &QualifiedInstId<Id>) -> 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<Id: PartialEq> PartialEq<QualifiedInstId<Id>> for QualifiedInstId<Id>
impl<Id: PartialEq> PartialEq<QualifiedInstId<Id>> for QualifiedInstId<Id>
source§fn eq(&self, other: &QualifiedInstId<Id>) -> bool
fn eq(&self, other: &QualifiedInstId<Id>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Id: PartialOrd> PartialOrd<QualifiedInstId<Id>> for QualifiedInstId<Id>
impl<Id: PartialOrd> PartialOrd<QualifiedInstId<Id>> for QualifiedInstId<Id>
source§fn partial_cmp(&self, other: &QualifiedInstId<Id>) -> Option<Ordering>
fn partial_cmp(&self, other: &QualifiedInstId<Id>) -> 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<Id: Eq> Eq for QualifiedInstId<Id>
impl<Id> StructuralEq for QualifiedInstId<Id>
impl<Id> StructuralPartialEq for QualifiedInstId<Id>
Auto Trait Implementations§
impl<Id> RefUnwindSafe for QualifiedInstId<Id>where Id: RefUnwindSafe,
impl<Id> Send for QualifiedInstId<Id>where Id: Send,
impl<Id> Sync for QualifiedInstId<Id>where Id: Sync,
impl<Id> Unpin for QualifiedInstId<Id>where Id: Unpin,
impl<Id> UnwindSafe for QualifiedInstId<Id>where Id: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.