pub trait FunctionTypeInterface: Type {
// Required methods
fn arg_types(&self) -> Vec<TypeHandle>;
fn res_types(&self) -> Vec<TypeHandle>;
}Expand description
Types that represent a function, i.e., take in arguments and return results.
Required Methods§
Sourcefn arg_types(&self) -> Vec<TypeHandle>
fn arg_types(&self) -> Vec<TypeHandle>
Returns the argument types of the function type.
Sourcefn res_types(&self) -> Vec<TypeHandle>
fn res_types(&self) -> Vec<TypeHandle>
Returns the result types of the function type.
Trait Implementations§
impl TypeImplsInterface<dyn FunctionTypeInterface> for FunctionType
impl TypeInterfaceMarker for dyn FunctionTypeInterface
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".