Struct erg_compiler::module::index::SharedModuleIndex
source · pub struct SharedModuleIndex(/* private fields */);
Implementations§
pub fn new() -> Self
pub fn inc_ref(&self, name: &Str, vi: &VarInfo, referrer: AbsLocation)
pub fn register(&self, name: Str, vi: &VarInfo)
pub fn get_refs( &self, referee: &AbsLocation ) -> Option<MappedRwLockReadGuard<'_, ModuleIndexValue>>
pub fn members(&self) -> Members<'_>
pub fn initialize(&self)
pub fn remove_path(&self, path: &NormalizedPathBuf)
pub fn rename_path(&self, old: &NormalizedPathBuf, new: NormalizedPathBuf)
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
Auto Trait Implementations§
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