Struct erg_compiler::module::index::ModuleIndexValue
source · pub struct ModuleIndexValue {
pub vi: VarInfo,
pub referrers: Set<AbsLocation>,
}
Fields§
§vi: VarInfo
§referrers: Set<AbsLocation>
Implementations§
source§impl ModuleIndexValue
impl ModuleIndexValue
pub const fn new(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
source§impl Default for ModuleIndexValue
impl Default for ModuleIndexValue
source§fn default() -> ModuleIndexValue
fn default() -> ModuleIndexValue
Returns the “default value” for a type. Read more