amazon-ion / ion-schema-rust

Rust implementation of Ion Schema
https://amazon-ion.github.io/ion-schema/sandbox
Apache License 2.0
13 stars 6 forks source link

Use an iterator instead of vector for `SchemaTypeItearator` implementaion #40

Open desaikd opened 3 years ago

desaikd commented 3 years ago

This could be achieved by having the type_store methods get_types() and get_imports() return an iterator over self.ids_by_name.values() and storing that in the SchemaTypeIterator.