Struct move_binary_format::file_format::FunctionHandle  
source · [−]pub struct FunctionHandle {
    pub module: ModuleHandleIndex,
    pub name: IdentifierIndex,
    pub parameters: SignatureIndex,
    pub return_: SignatureIndex,
    pub type_parameters: Vec<AbilitySet>,
}Expand description
A FunctionHandle is a reference to a function. It is composed by a
ModuleHandle and the name and signature of that function within the module.
A function within a module is uniquely identified by its name. No overloading is allowed and the verifier enforces that property. The signature of the function is used at link time to ensure the function reference is valid and it is also used by the verifier to type check function calls.
Fields
module: ModuleHandleIndexThe module that defines the function.
name: IdentifierIndexThe name of the function.
parameters: SignatureIndexThe list of arguments to the function.
return_: SignatureIndexThe list of return types.
type_parameters: Vec<AbilitySet>The type formals (identified by their index into the vec) and their constraints
Trait Implementations
sourceimpl Clone for FunctionHandle
 
impl Clone for FunctionHandle
sourcefn clone(&self) -> FunctionHandle
 
fn clone(&self) -> FunctionHandle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FunctionHandle
 
impl Debug for FunctionHandle
sourceimpl Hash for FunctionHandle
 
impl Hash for FunctionHandle
sourceimpl PartialEq<FunctionHandle> for FunctionHandle
 
impl PartialEq<FunctionHandle> for FunctionHandle
sourcefn eq(&self, other: &FunctionHandle) -> bool
 
fn eq(&self, other: &FunctionHandle) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl Eq for FunctionHandle
impl StructuralEq for FunctionHandle
impl StructuralPartialEq for FunctionHandle
Auto Trait Implementations
impl RefUnwindSafe for FunctionHandle
impl Send for FunctionHandle
impl Sync for FunctionHandle
impl Unpin for FunctionHandle
impl UnwindSafe for FunctionHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more