There was an implementation of Iterator for iterating through a FieldType. Turns out that it can be replaced with existing tools in iter_tools. This proposes the new implementation.
Also added some other utility functions for type conversion between FieldType and Vec<E>, to avoid match field_type everywhere.
Extracting small PRs from #294
There was an implementation of Iterator for iterating through a
FieldType
. Turns out that it can be replaced with existing tools initer_tools
. This proposes the new implementation.Also added some other utility functions for type conversion between
FieldType
andVec<E>
, to avoidmatch field_type
everywhere.