Crate structinator

source ·
Expand description

The Struct-inator 3000!

A procedural macro library for allowing conversion from iterators to user-defined structs.

This library does so by implementing a procedural macro, iter_convertable for struct definitions that automatically implements structinator_traits::SpecifyCreatableStruct for the defined struct.

For more information about how iter_convertable implements SpecifyCreatableStruct, visit the macro’s documentation

For more information about how an implementation of SpecifyCreatableStruct allows for easy conversion between Iterators and structs, visit the documentation of structinator_traits

Attribute Macros

  • Attribute for structs that can be built from an iterator. This attribute must be attached to a struct definition