Struct debris_mir::namespace::MirLocalNamespace
source · pub struct MirLocalNamespace {
properties: FxHashMap<Ident, (MirObjectId, Span)>,
}
Expand description
Stores all the identifiers that are local to a given object or context.
Fields§
§properties: FxHashMap<Ident, (MirObjectId, Span)>
All properties of this namespace.
Implementations§
source§impl MirLocalNamespace
impl MirLocalNamespace
pub fn iter(&self) -> impl Iterator<Item = (&Ident, &(MirObjectId, Span))>
pub fn get_property(&self, ident: &Ident) -> Option<MirObjectId>
pub fn property_get_or_insert( &mut self, nodes: &mut Vec<MirNode>, namespace: &mut MirNamespace, value_id: MirObjectId, ident: Ident, span: Span, current_context_id: MirContextId ) -> MirObjectId
pub fn insert(&mut self, id: MirObjectId, ident: Ident, span: Span)
pub fn is_empty(&self) -> bool
Trait Implementations§
source§impl Clone for MirLocalNamespace
impl Clone for MirLocalNamespace
source§fn clone(&self) -> MirLocalNamespace
fn clone(&self) -> MirLocalNamespace
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 MirLocalNamespace
impl Debug for MirLocalNamespace
source§impl Default for MirLocalNamespace
impl Default for MirLocalNamespace
source§fn default() -> MirLocalNamespace
fn default() -> MirLocalNamespace
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MirLocalNamespace
impl Send for MirLocalNamespace
impl Sync for MirLocalNamespace
impl Unpin for MirLocalNamespace
impl UnwindSafe for MirLocalNamespace
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