Trait FunctionTypeOverload

Source
pub trait FunctionTypeOverload {
    // Required method
    fn arguments(&self) -> Vec<ValueType>;
}
Expand description

Trait for extracting argument types from function-like objects.

This trait provides a unified interface for getting argument type information from different kinds of function objects (implementations, declarations, etc.). It is used internally by the overload resolution system.

§Implementation Note

This trait is automatically implemented for function types that can provide argument type information. It should not be implemented manually.

Required Methods§

Source

fn arguments(&self) -> Vec<ValueType>

Returns the argument types for this function.

§Returns

A vector of ValueType representing the function’s argument types.

Implementors§