pub fn requires_data_location(type_name: &TypeName) -> bool
Helper function to determine if a type requires a data location specifier