Struct move_model::model::QualifiedId
source · pub struct QualifiedId<Id> {
pub module_id: ModuleId,
pub id: Id,
}
Expand description
Some identifier qualified by a module.
Fields§
§module_id: ModuleId
§id: Id
Implementations§
source§impl<Id: Clone> QualifiedId<Id>
impl<Id: Clone> QualifiedId<Id>
pub fn instantiate(self, inst: Vec<Type>) -> QualifiedInstId<Id>
Trait Implementations§
source§impl<Id: Clone> Clone for QualifiedId<Id>
impl<Id: Clone> Clone for QualifiedId<Id>
source§fn clone(&self) -> QualifiedId<Id>
fn clone(&self) -> QualifiedId<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 QualifiedId<Id>
impl<Id: Debug> Debug for QualifiedId<Id>
source§impl GetNameString for QualifiedId<FunId>
impl GetNameString for QualifiedId<FunId>
fn get_name_for_display(&self, env: &GlobalEnv) -> String
source§impl GetNameString for QualifiedId<StructId>
impl GetNameString for QualifiedId<StructId>
fn get_name_for_display(&self, env: &GlobalEnv) -> String
source§impl<Id: Hash> Hash for QualifiedId<Id>
impl<Id: Hash> Hash for QualifiedId<Id>
source§impl<Id: Ord> Ord for QualifiedId<Id>
impl<Id: Ord> Ord for QualifiedId<Id>
source§fn cmp(&self, other: &QualifiedId<Id>) -> Ordering
fn cmp(&self, other: &QualifiedId<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<QualifiedId<Id>> for QualifiedId<Id>
impl<Id: PartialEq> PartialEq<QualifiedId<Id>> for QualifiedId<Id>
source§fn eq(&self, other: &QualifiedId<Id>) -> bool
fn eq(&self, other: &QualifiedId<Id>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Id: PartialOrd> PartialOrd<QualifiedId<Id>> for QualifiedId<Id>
impl<Id: PartialOrd> PartialOrd<QualifiedId<Id>> for QualifiedId<Id>
source§fn partial_cmp(&self, other: &QualifiedId<Id>) -> Option<Ordering>
fn partial_cmp(&self, other: &QualifiedId<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: Copy> Copy for QualifiedId<Id>
impl<Id: Eq> Eq for QualifiedId<Id>
impl<Id> StructuralEq for QualifiedId<Id>
impl<Id> StructuralPartialEq for QualifiedId<Id>
Auto Trait Implementations§
impl<Id> RefUnwindSafe for QualifiedId<Id>where Id: RefUnwindSafe,
impl<Id> Send for QualifiedId<Id>where Id: Send,
impl<Id> Sync for QualifiedId<Id>where Id: Sync,
impl<Id> Unpin for QualifiedId<Id>where Id: Unpin,
impl<Id> UnwindSafe for QualifiedId<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.