Function lowertest_derive::get_fields_names_types[][src]

pub(crate) fn get_fields_names_types(
    f: &Fields
) -> (Vec<String>, Vec<String>, Vec<&Type>)
Expand description

Gets the names and the types of the fields of an enum variant or struct.

The result has three parts:

  1. The names of the fields. If the fields are unnamed, this is empty.
  2. The types of the fields as strings.
  3. The types of the fields as syn::Type

Fields with the attribute #[mzreflect(ignore)] are not returned.