Function macro_tools::orphan::item_struct::first_field_type
source ยท pub fn first_field_type(t: &ItemStruct) -> Result<Type>
Expand description
Retrieves the type of the first field of the struct.
Returns the type if the struct has at least one field, otherwise returns an error.