Struct move_lang::hlir::ast::ModuleDefinition
source · pub struct ModuleDefinition {
pub attributes: Vec<Attribute>,
pub is_source_module: bool,
pub dependency_order: usize,
pub friends: UniqueMap<ModuleIdent, Friend>,
pub structs: UniqueMap<StructName, StructDefinition>,
pub constants: UniqueMap<ConstantName, Constant>,
pub functions: UniqueMap<FunctionName, Function>,
}
Fields§
§attributes: Vec<Attribute>
§is_source_module: bool
§dependency_order: usize
dependency_order
is the topological order/rank in the dependency graph.
friends: UniqueMap<ModuleIdent, Friend>
§structs: UniqueMap<StructName, StructDefinition>
§constants: UniqueMap<ConstantName, Constant>
§functions: UniqueMap<FunctionName, Function>
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