Function get_field_types

Source
fn get_field_types(path: &Path, segments: &mut BTreeSet<String>)
Expand description

This function extracts the type names from a complex type and stores them in a BTreeSet. It’s designed to handle nested generic types, such as Foo<Bar<Baz>>, and return [“Foo”, “Bar”, “Baz”].