Struct move_binary_format::normalized::Struct
source · pub struct Struct {
pub abilities: AbilitySet,
pub type_parameters: Vec<StructTypeParameter>,
pub fields: Vec<Field>,
}
Expand description
Normalized version of a StructDefinition
. Not safe to compare without an associated
ModuleId
or Module
.
Fields§
§abilities: AbilitySet
§type_parameters: Vec<StructTypeParameter>
§fields: Vec<Field>
Implementations§
source§impl Struct
impl Struct
sourcepub fn new(m: &CompiledModule, def: &StructDefinition) -> (Identifier, Self)
pub fn new(m: &CompiledModule, def: &StructDefinition) -> (Identifier, Self)
Create a Struct
for StructDefinition
def
in module m
. Panics if def
is a
a native struct definition.