Struct erg_compiler::module::index::ModuleIndex
source · pub struct ModuleIndex { /* private fields */ }
Implementations§
source§impl ModuleIndex
impl ModuleIndex
pub fn new() -> Self
pub fn inc_ref(&mut self, name: &Str, vi: &VarInfo, referrer: AbsLocation)
pub fn register(&mut self, name: Str, vi: &VarInfo)
pub fn get_refs(&self, referee: &AbsLocation) -> Option<&ModuleIndexValue>
pub fn initialize(&mut self)
pub fn remove_path(&mut self, path: &NormalizedPathBuf)
pub fn rename_path(&mut self, old: &NormalizedPathBuf, new: NormalizedPathBuf)
Trait Implementations§
source§impl Clone for ModuleIndex
impl Clone for ModuleIndex
source§fn clone(&self) -> ModuleIndex
fn clone(&self) -> ModuleIndex
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 ModuleIndex
impl Debug for ModuleIndex
source§impl Default for ModuleIndex
impl Default for ModuleIndex
source§fn default() -> ModuleIndex
fn default() -> ModuleIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModuleIndex
impl RefUnwindSafe for ModuleIndex
impl Send for ModuleIndex
impl Sync for ModuleIndex
impl Unpin for ModuleIndex
impl UnwindSafe for ModuleIndex
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