Struct move_binary_format::normalized::Function
source · pub struct Function {
pub visibility: Visibility,
pub type_parameters: Vec<AbilitySet>,
pub parameters: Vec<Type>,
pub return_: Vec<Type>,
}
Expand description
Normalized version of a FunctionDefinition
. Not safe to compare without an associated
ModuleId
or Module
.
Fields§
§visibility: Visibility
§type_parameters: Vec<AbilitySet>
§parameters: Vec<Type>
§return_: Vec<Type>
Implementations§
source§impl Function
impl Function
sourcepub fn new(m: &CompiledModule, def: &FunctionDefinition) -> (Identifier, Self)
pub fn new(m: &CompiledModule, def: &FunctionDefinition) -> (Identifier, Self)
Create a FunctionSignature
for FunctionHandle
f
in module m
.
Trait Implementations§
source§impl Ord for Function
impl Ord for Function
source§impl PartialEq<Function> for Function
impl PartialEq<Function> for Function
source§impl PartialOrd<Function> for Function
impl PartialOrd<Function> for Function
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more