contains_function_type

Function contains_function_type 

Source
pub fn contains_function_type(type_name: &TypeName) -> bool
Expand description

Check recursively if the type name contains a function type.

§Arguments

  • type_name - The type name

§Returns

True if the type name contains a function type.

§Example

let type_name = TypeName::FunctionTypeName("MyFunction".to_string());
let contains = contains_function_type(&type_name);
assert!(contains);