Skip to main content

is_function_type

Function is_function_type 

Source
pub fn is_function_type(types: &dyn TypeDatabase, type_id: TypeId) -> bool
Expand description

Check if a type is a function type (Function or Callable).

This also handles intersections containing function types.