Function struct_gen_derive::struct_iterator [−][src]
pub fn struct_iterator(input: TokenStream) -> TokenStream
struct_iterator is a procedural macro for taking a tuple struct of types
implementingZero
on each type for fixed-size arrays of lengths [0,10].
struct_iterator
Comments and boilerplate from dtolnay's presentation at Mozilla, basic struct iteration based off of Christopher Breeden's blog post.
Note: for the internal impl_struct_iter
function we use default for now instead
of zoor. This will likely change by 0.2.0 release of struct_gen, however for now, where
we are only interested in the zero in zero-or-override, this is fine.