Skip to main content

FunctionTypeInterface

Trait FunctionTypeInterface 

Source
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§

Source

fn arg_types(&self) -> Vec<TypeHandle>

Returns the argument types of the function type.

Source

fn res_types(&self) -> Vec<TypeHandle>

Returns the result types of the function type.

Trait Implementations§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§