Struct erg_compiler::module::index::SharedModuleIndex
source · pub struct SharedModuleIndex(_);
Implementations§
pub fn new() -> Self
pub fn add_ref(&self, referee: AbsLocation, referrer: AbsLocation)
pub fn get_refs(&self, referee: &AbsLocation) -> Option<&Set<AbsLocation>>
pub fn referees(&self) -> Keys<'_, AbsLocation, Set<AbsLocation>>
pub fn referrers(&self) -> Values<'_, AbsLocation, Set<AbsLocation>>
pub fn initialize(&self)
Trait Implementations§
source§fn clone(&self) -> SharedModuleIndex
fn clone(&self) -> SharedModuleIndex
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§fn default() -> SharedModuleIndex
fn default() -> SharedModuleIndex
Returns the “default value” for a type. Read more