Struct debris_mir::mir_object::MirObjectId
source · pub struct MirObjectId {
pub(crate) compilation_id: CompilationId,
pub(crate) id: u32,
}
Fields§
§compilation_id: CompilationId
§id: u32
Implementations§
source§impl MirObjectId
impl MirObjectId
pub(crate) fn new(compilation_id: CompilationId, id: u32) -> Self
pub fn property_get_or_insert( self, global_namespace: &mut MirNamespace, nodes: &mut Vec<MirNode>, ident: Ident, span: Span, current_context_id: MirContextId ) -> MirObjectId
pub fn get_property( self, global_namespace: &MirNamespace, ident: &Ident ) -> Option<MirObjectId>
Trait Implementations§
source§impl Clone for MirObjectId
impl Clone for MirObjectId
source§fn clone(&self) -> MirObjectId
fn clone(&self) -> MirObjectId
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 Debug for MirObjectId
impl Debug for MirObjectId
source§impl Hash for MirObjectId
impl Hash for MirObjectId
source§impl Ord for MirObjectId
impl Ord for MirObjectId
source§fn cmp(&self, other: &MirObjectId) -> Ordering
fn cmp(&self, other: &MirObjectId) -> 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 PartialEq for MirObjectId
impl PartialEq for MirObjectId
source§fn eq(&self, other: &MirObjectId) -> bool
fn eq(&self, other: &MirObjectId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MirObjectId
impl PartialOrd for MirObjectId
source§fn partial_cmp(&self, other: &MirObjectId) -> Option<Ordering>
fn partial_cmp(&self, other: &MirObjectId) -> 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 Copy for MirObjectId
impl Eq for MirObjectId
impl StructuralEq for MirObjectId
impl StructuralPartialEq for MirObjectId
Auto Trait Implementations§
impl RefUnwindSafe for MirObjectId
impl Send for MirObjectId
impl Sync for MirObjectId
impl Unpin for MirObjectId
impl UnwindSafe for MirObjectId
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
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.