Struct move_binary_format::normalized::Module
source · pub struct Module {
pub address: AccountAddress,
pub name: Identifier,
pub friends: Vec<ModuleId>,
pub structs: BTreeMap<Identifier, Struct>,
pub exposed_functions: BTreeMap<Identifier, Function>,
}Expand description
Normalized version of a CompiledModule: its address, name, struct declarations, and public
function declarations.
Fields§
§address: AccountAddress§name: Identifier§friends: Vec<ModuleId>§structs: BTreeMap<Identifier, Struct>§exposed_functions: BTreeMap<Identifier, Function>Implementations§
source§impl Module
impl Module
sourcepub fn new(m: &CompiledModule) -> Self
pub fn new(m: &CompiledModule) -> Self
Extract a normalized module from a CompiledModule. The module m should be verified.
Nothing will break here if that is not the case, but there is little point in computing a
normalized representation of a module that won’t verify (since it can’t be published).