Struct erg_compiler::module::index::ModuleIndexValue
source · pub struct ModuleIndexValue {
pub name: Str,
pub vi: VarInfo,
pub referrers: Set<AbsLocation>,
}
Fields§
§name: Str
§vi: VarInfo
§referrers: Set<AbsLocation>
Implementations§
source§impl ModuleIndexValue
impl ModuleIndexValue
pub const fn new(name: Str, vi: VarInfo, referrers: Set<AbsLocation>) -> Self
pub fn push_ref(&mut self, referrer: AbsLocation)
Trait Implementations§
source§impl Clone for ModuleIndexValue
impl Clone for ModuleIndexValue
source§fn clone(&self) -> ModuleIndexValue
fn clone(&self) -> ModuleIndexValue
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 ModuleIndexValue
impl Debug for ModuleIndexValue
Auto Trait Implementations§
impl RefUnwindSafe for ModuleIndexValue
impl Send for ModuleIndexValue
impl Sync for ModuleIndexValue
impl Unpin for ModuleIndexValue
impl UnwindSafe for ModuleIndexValue
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