Struct move_lang::expansion::ast::ModuleDefinition
source · pub struct ModuleDefinition {
pub attributes: Vec<Attribute>,
pub loc: Loc,
pub is_source_module: bool,
pub dependency_order: usize,
pub immediate_neighbors: UniqueMap<ModuleIdent, Neighbor>,
pub used_addresses: BTreeSet<Address>,
pub friends: UniqueMap<ModuleIdent, Friend>,
pub structs: UniqueMap<StructName, StructDefinition>,
pub functions: UniqueMap<FunctionName, Function>,
pub constants: UniqueMap<ConstantName, Constant>,
pub specs: Vec<SpecBlock>,
}
Fields§
§attributes: Vec<Attribute>
§loc: Loc
§is_source_module: bool
§dependency_order: usize
dependency_order
is the topological order/rank in the dependency graph.
dependency_order
is initialized at 0
and set in the uses pass
immediate_neighbors: UniqueMap<ModuleIdent, Neighbor>
§used_addresses: BTreeSet<Address>
§friends: UniqueMap<ModuleIdent, Friend>
§structs: UniqueMap<StructName, StructDefinition>
§functions: UniqueMap<FunctionName, Function>
§constants: UniqueMap<ConstantName, Constant>
§specs: Vec<SpecBlock>
Trait Implementations§
source§impl Clone for ModuleDefinition
impl Clone for ModuleDefinition
source§fn clone(&self) -> ModuleDefinition
fn clone(&self) -> ModuleDefinition
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 more